[llvm] r286903 - GlobalISel: add tests for G_ZEXT/G_SEXT to types smaller than 32-bits.
Tim Northover via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 14 14:50:23 PST 2016
Author: tnorthover
Date: Mon Nov 14 16:50:22 2016
New Revision: 286903
URL: http://llvm.org/viewvc/llvm-project?rev=286903&view=rev
Log:
GlobalISel: add tests for G_ZEXT/G_SEXT to types smaller than 32-bits.
Support was accidentally added in r286407, but there were no tests at the time.
Modified:
llvm/trunk/test/CodeGen/AArch64/GlobalISel/arm64-instructionselect.mir
Modified: llvm/trunk/test/CodeGen/AArch64/GlobalISel/arm64-instructionselect.mir
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AArch64/GlobalISel/arm64-instructionselect.mir?rev=286903&r1=286902&r2=286903&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/AArch64/GlobalISel/arm64-instructionselect.mir (original)
+++ llvm/trunk/test/CodeGen/AArch64/GlobalISel/arm64-instructionselect.mir Mon Nov 14 16:50:22 2016
@@ -2511,19 +2511,22 @@ regBankSelected: true
# CHECK-NEXT: - { id: 1, class: gpr64 }
# CHECK-NEXT: - { id: 2, class: gpr32 }
# CHECK-NEXT: - { id: 3, class: gpr32 }
-# CHECK-NEXT: - { id: 4, class: gpr64 }
+# CHECK-NEXT: - { id: 4, class: gpr32 }
+# CHECK-NEXT: - { id: 5, class: gpr64 }
registers:
- { id: 0, class: gpr }
- { id: 1, class: gpr }
- { id: 2, class: gpr }
- { id: 3, class: gpr }
+ - { id: 4, class: gpr }
# CHECK: body:
# CHECK: %0 = COPY %w0
-# CHECK: %4 = SUBREG_TO_REG 0, %0, 15
-# CHECK: %1 = UBFMXri %4, 0, 31
+# CHECK: %5 = SUBREG_TO_REG 0, %0, 15
+# CHECK: %1 = UBFMXri %5, 0, 31
# CHECK: %2 = COPY %w0
# CHECK: %3 = UBFMWri %2, 0, 7
+# CHECK: %4 = UBFMWri %2, 0, 7
body: |
bb.0:
liveins: %w0
@@ -2532,6 +2535,7 @@ body: |
%1(s64) = G_ZEXT %0
%2(s8) = COPY %w0
%3(s32) = G_ZEXT %2
+ %4(s16)= G_ZEXT %2
...
---
@@ -2545,19 +2549,22 @@ regBankSelected: true
# CHECK-NEXT: - { id: 1, class: gpr64 }
# CHECK-NEXT: - { id: 2, class: gpr32 }
# CHECK-NEXT: - { id: 3, class: gpr32 }
-# CHECK-NEXT: - { id: 4, class: gpr64 }
+# CHECK-NEXT: - { id: 4, class: gpr32 }
+# CHECK-NEXT: - { id: 5, class: gpr64 }
registers:
- { id: 0, class: gpr }
- { id: 1, class: gpr }
- { id: 2, class: gpr }
- { id: 3, class: gpr }
+ - { id: 4, class: gpr }
# CHECK: body:
# CHECK: %0 = COPY %w0
-# CHECK: %4 = SUBREG_TO_REG 0, %0, 15
-# CHECK: %1 = SBFMXri %4, 0, 31
+# CHECK: %5 = SUBREG_TO_REG 0, %0, 15
+# CHECK: %1 = SBFMXri %5, 0, 31
# CHECK: %2 = COPY %w0
# CHECK: %3 = SBFMWri %2, 0, 7
+# CHECK: %4 = SBFMWri %2, 0, 7
body: |
bb.0:
liveins: %w0
@@ -2566,6 +2573,7 @@ body: |
%1(s64) = G_SEXT %0
%2(s8) = COPY %w0
%3(s32) = G_SEXT %2
+ %4(s16) = G_SEXT %2
...
---
More information about the llvm-commits
mailing list