diff options
| author | Tim Northover <tnorthover@apple.com> | 2016-08-23 19:30:38 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2016-08-23 19:30:38 +0000 |
| commit | 456a3c03aceab17fff31eddbae9f8478dc4e3025 (patch) | |
| tree | a3029959daf887a28b708e16dfbc1de95abef283 /llvm/test | |
| parent | 9704d235d0f944bd217fcc00200c47e23d884cdb (diff) | |
| download | bcm5719-llvm-456a3c03aceab17fff31eddbae9f8478dc4e3025.tar.gz bcm5719-llvm-456a3c03aceab17fff31eddbae9f8478dc4e3025.zip | |
GlobalISel: mark pointer casts legal on AArch64.
llvm-svn: 279553
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/AArch64/GlobalISel/legalize-simple.mir | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/GlobalISel/legalize-simple.mir b/llvm/test/CodeGen/AArch64/GlobalISel/legalize-simple.mir new file mode 100644 index 00000000000..73af2dfc53a --- /dev/null +++ b/llvm/test/CodeGen/AArch64/GlobalISel/legalize-simple.mir @@ -0,0 +1,29 @@ +# RUN: llc -O0 -run-pass=legalize-mir -global-isel %s -o - 2>&1 | FileCheck %s + +--- | + target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128" + target triple = "aarch64-apple-ios" + define void @test_simple() { + entry: + ret void + } +... + +--- +name: test_simple +isSSA: true +registers: + - { id: 0, class: _ } + - { id: 1, class: _ } + - { id: 2, class: _ } +body: | + bb.0.entry: + liveins: %x0, %x1, %x2, %x3 + %0(64) = COPY %x0 + + ; CHECK-LABEL: name: test_simple + ; CHECK: %1(64) = G_PTRTOINT { s64, p0 } %0 + ; CHECK: %2(64) = G_INTTOPTR { p0, s64 } %1 + %1(64) = G_PTRTOINT { s64, p0 } %0 + %2(64) = G_INTTOPTR { p0, s64 } %1 +... |

