diff options
author | Diana Picus <diana.picus@linaro.org> | 2016-06-14 07:30:20 +0000 |
---|---|---|
committer | Diana Picus <diana.picus@linaro.org> | 2016-06-14 07:30:20 +0000 |
commit | bae1d89e4513c35b58e26bce2380761de0fbdbe4 (patch) | |
tree | 0a06e367b31d3160638aa643365065f331b324bf /llvm/test/CodeGen/PowerPC/inline-asm-scalar-to-vector-error.ll | |
parent | 484bace21b76f2d44266c63cb828635da6bf51a6 (diff) | |
download | bcm5719-llvm-bae1d89e4513c35b58e26bce2380761de0fbdbe4.tar.gz bcm5719-llvm-bae1d89e4513c35b58e26bce2380761de0fbdbe4.zip |
[SelectionDAG] Remove exit-on-error flag from test (PR27765)
The exit-on-error flag in the ARM test is necessary in order to avoid an
unreachable in the DAGTypeLegalizer, when trying to expand a physical register.
We can also avoid this situation by introducing a bitcast early on, where the
invalid scalar-to-vector conversion is detected.
We also add a test for PowerPC, which goes through a similar code path in the
SelectionDAGBuilder.
Fixes PR27765.
Differential Revision: http://reviews.llvm.org/D21061
llvm-svn: 272644
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/inline-asm-scalar-to-vector-error.ll')
-rw-r--r-- | llvm/test/CodeGen/PowerPC/inline-asm-scalar-to-vector-error.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/inline-asm-scalar-to-vector-error.ll b/llvm/test/CodeGen/PowerPC/inline-asm-scalar-to-vector-error.ll new file mode 100644 index 00000000000..3f1d9d32bec --- /dev/null +++ b/llvm/test/CodeGen/PowerPC/inline-asm-scalar-to-vector-error.ll @@ -0,0 +1,14 @@ +; RUN: not llc -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8a -mattr=+altivec %s -o - 2>&1 | FileCheck %s + +define hidden void @f(i32 %x) { + ; CHECK: scalar-to-vector conversion failed, possible invalid constraint for vector type + tail call void asm sideeffect "nop", "{v1}"(i32 %x) nounwind + + ; CHECK: scalar-to-vector conversion failed, possible invalid constraint for vector type + tail call void asm sideeffect "nop", "{vsl1}"(i32 %x) nounwind + + ; CHECK: scalar-to-vector conversion failed, possible invalid constraint for vector type + tail call void asm sideeffect "nop", "{vsh1}"(i32 %x) nounwind + + ret void +} |