summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2016-10-12 03:57:43 +0000
committerQuentin Colombet <qcolombet@apple.com>2016-10-12 03:57:43 +0000
commit404e4350dcc9690a5a48a66aaf32425651b84b7f (patch)
tree988317e1a5ac031ac462fcf7319afaaac0b2821b /llvm/test
parentc4be4be5ddae96114e09244ad1ffcbe60741f879 (diff)
downloadbcm5719-llvm-404e4350dcc9690a5a48a66aaf32425651b84b7f.tar.gz
bcm5719-llvm-404e4350dcc9690a5a48a66aaf32425651b84b7f.zip
[AArch64][MachineLegalizer] Mark more bitcasts as legal.
Those are copies, we do not have to do any legalization action for them. llvm-svn: 283970
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/AArch64/GlobalISel/legalize-simple.mir10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/GlobalISel/legalize-simple.mir b/llvm/test/CodeGen/AArch64/GlobalISel/legalize-simple.mir
index 499d800cd10..29cc49ff9d9 100644
--- a/llvm/test/CodeGen/AArch64/GlobalISel/legalize-simple.mir
+++ b/llvm/test/CodeGen/AArch64/GlobalISel/legalize-simple.mir
@@ -44,6 +44,9 @@ registers:
- { id: 27, class: _ }
- { id: 28, class: _ }
- { id: 29, class: _ }
+ - { id: 30, class: _ }
+ - { id: 31, class: _ }
+ - { id: 32, class: _ }
body: |
bb.0.entry:
liveins: %x0, %x1, %x2, %x3
@@ -117,4 +120,11 @@ body: |
%27(s16) = G_SELECT %10, %12, %7
%28(s32) = G_SELECT %10, %15, %16
%29(s64) = G_SELECT %10, %9, %24
+
+ ; CHECK: %30(<2 x s32>) = G_BITCAST %9
+ ; CHECK: %31(s64) = G_BITCAST %30
+ ; CHECK: %32(s32) = G_BITCAST %15
+ %30(<2 x s32>) = G_BITCAST %9
+ %31(s64) = G_BITCAST %30
+ %32(s32) = G_BITCAST %15
...
OpenPOWER on IntegriCloud