summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/GlobalISel/select-undef.mir22
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/GlobalISel/select-undef.mir b/llvm/test/CodeGen/X86/GlobalISel/select-undef.mir
index 92fa14efdb5..62aa09011e2 100644
--- a/llvm/test/CodeGen/X86/GlobalISel/select-undef.mir
+++ b/llvm/test/CodeGen/X86/GlobalISel/select-undef.mir
@@ -11,6 +11,9 @@
ret i8 %r
}
+ define float @test3() {
+ ret float undef
+ }
...
---
name: test
@@ -64,3 +67,22 @@ body: |
RET 0, implicit $al
...
+---
+name: test3
+alignment: 4
+legalized: true
+regBankSelected: true
+tracksRegLiveness: true
+registers:
+ - { id: 1, class: vecr }
+body: |
+ bb.1 (%ir-block.0):
+ ; ALL-LABEL: name: test3
+ ; ALL: [[DEF:%[0-9]+]]:vr128 = IMPLICIT_DEF
+ ; ALL: $xmm0 = COPY [[DEF]]
+ ; ALL: RET 0, implicit $xmm0
+ %1:vecr(s128) = G_IMPLICIT_DEF
+ $xmm0 = COPY %1:vecr(s128)
+ RET 0, implicit $xmm0
+
+...
OpenPOWER on IntegriCloud