diff options
Diffstat (limited to 'test/CodeGen/ARM/select-undef.ll')
-rw-r--r-- | test/CodeGen/ARM/select-undef.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/select-undef.ll b/test/CodeGen/ARM/select-undef.ll new file mode 100644 index 0000000..23f7eb8 --- /dev/null +++ b/test/CodeGen/ARM/select-undef.ll @@ -0,0 +1,7 @@ +; RUN: llc < %s -march=arm -mcpu=swift -verify-machineinstrs +define i32 @func(i32 %arg0, i32 %arg1) { +entry: + %cmp = icmp slt i32 %arg0, 10 + %v = select i1 %cmp, i32 undef, i32 %arg1 + ret i32 %v +} |