diff options
author | Matthias Braun <matze@braunis.de> | 2013-10-04 16:52:51 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2013-10-04 16:52:51 +0000 |
commit | e1bde51d63f888e0011dfd3b9cfd78b1736d0b5d (patch) | |
tree | 31e909c7ff0f64152a658308605ac204ebc1c901 /test/CodeGen/ARM | |
parent | 47e1c700bf3a086f324064a914cfc54f9729d6ef (diff) | |
download | external_llvm-e1bde51d63f888e0011dfd3b9cfd78b1736d0b5d.zip external_llvm-e1bde51d63f888e0011dfd3b9cfd78b1736d0b5d.tar.gz external_llvm-e1bde51d63f888e0011dfd3b9cfd78b1736d0b5d.tar.bz2 |
ARM: preserve undef flag in pseudo instruction expanders
Copy over the whole register machine operand instead of creating a new one
with an incomplete set of flags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191961 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM')
-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 +} |