diff options
| author | Tim Northover <tnorthover@apple.com> | 2017-02-24 21:21:38 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2017-02-24 21:21:38 +0000 |
| commit | ef29e7284b355e5ca8931e73bf6312d33a549c23 (patch) | |
| tree | 97527a76f6ea7a01ec8d543b86b620f5068c61cb /llvm/test | |
| parent | cd72f156d693aa61a93c1369daf51e43b9982c78 (diff) | |
| download | bcm5719-llvm-ef29e7284b355e5ca8931e73bf6312d33a549c23.tar.gz bcm5719-llvm-ef29e7284b355e5ca8931e73bf6312d33a549c23.zip | |
GlobalISel: check for CImm rather than Imm on G_CONSTANTs.
All G_CONSTANTS created by the MachineIRBuilder have an operand of type CImm
(i.e. a ConstantInt), so that's what the selector needs to look for.
llvm-svn: 296176
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/AArch64/GlobalISel/arm64-instructionselect-xor.mir | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/AArch64/GlobalISel/arm64-instructionselect-xor.mir b/llvm/test/CodeGen/AArch64/GlobalISel/arm64-instructionselect-xor.mir index 2fd5588cadd..722dddb20a7 100644 --- a/llvm/test/CodeGen/AArch64/GlobalISel/arm64-instructionselect-xor.mir +++ b/llvm/test/CodeGen/AArch64/GlobalISel/arm64-instructionselect-xor.mir @@ -100,7 +100,7 @@ body: | liveins: %w0 %0(s32) = COPY %w0 - %1(s32) = G_CONSTANT -1 + %1(s32) = G_CONSTANT i64 -1 %2(s32) = G_XOR %0, %1 ... @@ -128,7 +128,7 @@ body: | liveins: %x0 %0(s64) = COPY %x0 - %1(s64) = G_CONSTANT -1 + %1(s64) = G_CONSTANT i64 -1 %2(s64) = G_XOR %0, %1 ... @@ -157,10 +157,9 @@ body: | bb.0: liveins: %w0, %w1 successors: %bb.1 - %1(s32) = G_CONSTANT -1 + %1(s32) = G_CONSTANT i64 -1 G_BR %bb.1 bb.1: %0(s32) = COPY %w0 %2(s32) = G_XOR %0, %1 ... - |

