Convert CodeGen/*/*.ll tests to use the new CHECK-LABEL for easier debugging. No...
[oota-llvm.git] / test / CodeGen / X86 / legalize-shift-64.ll
index c9f2fc27dbffc08324aa2a3af0631ccbf45fc381..748cbcb82f303bfec0597fda553902ebb22d9179 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -mcpu=generic -march=x86 < %s | FileCheck %s
+; RUN: llc -mcpu=generic -mtriple=i686-unknown-unknown < %s | FileCheck %s
 
 define i64 @test1(i32 %xx, i32 %test) nounwind {
   %conv = zext i32 %xx to i64
@@ -6,7 +6,7 @@ define i64 @test1(i32 %xx, i32 %test) nounwind {
   %sh_prom = zext i32 %and to i64
   %shl = shl i64 %conv, %sh_prom
   ret i64 %shl
-; CHECK: test1:
+; CHECK-LABEL: test1:
 ; CHECK: shll  %cl, %eax
 ; CHECK: shrl  %edx
 ; CHECK: xorb  $31
@@ -18,7 +18,7 @@ define i64 @test2(i64 %xx, i32 %test) nounwind {
   %sh_prom = zext i32 %and to i64
   %shl = shl i64 %xx, %sh_prom
   ret i64 %shl
-; CHECK: test2:
+; CHECK-LABEL: test2:
 ; CHECK: shll  %cl, %esi
 ; CHECK: shrl  %edx
 ; CHECK: xorb  $31
@@ -32,7 +32,7 @@ define i64 @test3(i64 %xx, i32 %test) nounwind {
   %sh_prom = zext i32 %and to i64
   %shr = lshr i64 %xx, %sh_prom
   ret i64 %shr
-; CHECK: test3:
+; CHECK-LABEL: test3:
 ; CHECK: shrl  %cl, %esi
 ; CHECK: leal  (%edx,%edx), %eax
 ; CHECK: xorb  $31, %cl
@@ -46,7 +46,7 @@ define i64 @test4(i64 %xx, i32 %test) nounwind {
   %sh_prom = zext i32 %and to i64
   %shr = ashr i64 %xx, %sh_prom
   ret i64 %shr
-; CHECK: test4:
+; CHECK-LABEL: test4:
 ; CHECK: shrl  %cl, %esi
 ; CHECK: leal  (%edx,%edx), %eax
 ; CHECK: xorb  $31, %cl
@@ -54,3 +54,14 @@ define i64 @test4(i64 %xx, i32 %test) nounwind {
 ; CHECK: orl   %esi, %eax
 ; CHECK: sarl  %cl, %edx
 }
+
+; PR14668
+define <2 x i64> @test5(<2 x i64> %A, <2 x i64> %B) {
+  %shl = shl <2 x i64> %A, %B
+  ret <2 x i64> %shl
+; CHECK: test5
+; CHECK: shl
+; CHECK: shldl
+; CHECK: shl
+; CHECK: shldl
+}