]> granicus.if.org Git - llvm/commitdiff
[x86] set the datalayout to match the RUN line triple; NFC
authorSanjay Patel <spatel@rotateright.com>
Wed, 21 Jun 2017 17:06:24 +0000 (17:06 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 21 Jun 2017 17:06:24 +0000 (17:06 +0000)
I don't think there's any visible difference from having the wrong layout
for the 32-bit case at this point, but that could change in the future.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305931 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/CodeGenPrepare/X86/memcmp.ll

index 337889b34d6074145a08cab8b071b310e49e6740..690e714af2610f93aea64cf05f6fd42f14f0b6e5 100644 (file)
@@ -1,7 +1,5 @@
-; RUN: opt -S -codegenprepare -mtriple=i686-unknown-unknown < %s   | FileCheck %s --check-prefix=ALL --check-prefix=X32
-; RUN: opt -S -codegenprepare -mtriple=x86_64-unknown-unknown < %s | FileCheck %s --check-prefix=ALL --check-prefix=X64
-
-target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
+; RUN: opt -S -codegenprepare -mtriple=i686-unknown-unknown   -data-layout=e-m:o-p:32:32-f64:32:64-f80:128-n8:16:32-S128 < %s | FileCheck %s --check-prefix=ALL --check-prefix=X32
+; RUN: opt -S -codegenprepare -mtriple=x86_64-unknown-unknown -data-layout=e-m:o-i64:64-f80:128-n8:16:32:64-S128         < %s | FileCheck %s --check-prefix=ALL --check-prefix=X64
 
 declare i32 @memcmp(i8* nocapture, i8* nocapture, i64)