summaryrefslogtreecommitdiff
path: root/test/CodeGen/AArch64/GlobalISel/legalize-undef.mir
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/AArch64/GlobalISel/legalize-undef.mir')
-rw-r--r--test/CodeGen/AArch64/GlobalISel/legalize-undef.mir15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/GlobalISel/legalize-undef.mir b/test/CodeGen/AArch64/GlobalISel/legalize-undef.mir
new file mode 100644
index 0000000000000..e7cf59b3394e3
--- /dev/null
+++ b/test/CodeGen/AArch64/GlobalISel/legalize-undef.mir
@@ -0,0 +1,15 @@
+# RUN: llc -mtriple=aarch64-linux-gnu -O0 -run-pass=legalizer -global-isel %s -o - | FileCheck %s
+
+---
+name: test_implicit_def
+registers:
+body: |
+ bb.0.entry:
+ liveins:
+ ; CHECK-LABEL: name: test_implicit_def
+ ; CHECK: [[LO:%[0-9]+]](s64) = G_IMPLICIT_DEF
+ ; CHECK: [[HI:%[0-9]+]](s64) = G_IMPLICIT_DEF
+ ; CHECK: %0(s128) = G_MERGE_VALUES [[LO]](s64), [[HI]](s64)
+
+ %0:_(s128) = G_IMPLICIT_DEF
+...