llvm.org GIT mirror llvm / 0dc9166
[ARM] Regenerate rotation tests git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367214 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Pilgrim 1 year, 17 days ago
1 changed file(s) with 8 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
0 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
1 ; RUN: llc -mtriple=arm-eabi -mattr=+v6 %s -o - | FileCheck %s
12
23 ; rotr (rotr x, 4), 6 -> rotr x, 10 -> ror r0, r0, #10
34 define i32 @test1(i32 %x) nounwind readnone {
45 ; CHECK-LABEL: test1:
5 ; CHECK: ror r0, r0, #10
6 ; CHECK: bx lr
6 ; CHECK: @ %bb.0: @ %entry
7 ; CHECK-NEXT: ror r0, r0, #10
8 ; CHECK-NEXT: bx lr
79 entry:
810 %high_part.i = shl i32 %x, 28
911 %low_part.i = lshr i32 %x, 4
1719 ; the same vector test
1820 define <2 x i32> @test2(<2 x i32> %x) nounwind readnone {
1921 ; CHECK-LABEL: test2:
20 ; CHECK: ror r0, r0, #10
21 ; CHECK: ror r1, r1, #10
22 ; CHECK: bx lr
22 ; CHECK: @ %bb.0: @ %entry
23 ; CHECK-NEXT: ror r0, r0, #10
24 ; CHECK-NEXT: ror r1, r1, #10
25 ; CHECK-NEXT: bx lr
2326 entry:
2427 %high_part.i = shl <2 x i32> %x,
2528 %low_part.i = lshr <2 x i32> %x,