[AVX512] Bring back vector-shuffle lowering support through broadcasts
[oota-llvm.git] / test / CodeGen / X86 / lea.ll
index 22a96448f029a30503131e3d95380c9c7221a6aa..9b6632c94693c8eaaeca1853571d9be3b7e32606 100644 (file)
@@ -1,11 +1,14 @@
-; RUN: llc < %s -march=x86-64 | FileCheck %s
+; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
+; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s
+; RUN: llc < %s -mtriple=x86_64-linux-gnux32 | FileCheck %s
+; RUN: llc < %s -mtriple=x86_64-nacl | FileCheck %s
 
 define i32 @test1(i32 %x) nounwind {
         %tmp1 = shl i32 %x, 3
         %tmp2 = add i32 %tmp1, 7
         ret i32 %tmp2
-; CHECK: test1:
-; CHECK:    leal 7(,%rdi,8), %eax
+; CHECK-LABEL: test1:
+; CHECK:    leal 7(,%r[[A0:di|cx]],8), %eax
 }
 
 
@@ -26,9 +29,9 @@ bb.nph:
 
 bb2:
        ret i32 %x_offs
-; CHECK: test2:
-; CHECK:       leal    -5(%rdi), %eax
+; CHECK-LABEL: test2:
+; CHECK:        leal    -5(%r[[A0:..]]), %eax
 ; CHECK:       andl    $-4, %eax
 ; CHECK:       negl    %eax
-; CHECK:       leal    -4(%rdi,%rax), %eax
+; CHECK:       leal    -4(%r[[A0]],%rax), %eax
 }