From 0de7694de6540527e7b883ddcae677d0dd9f6d5a Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 29 Jun 2007 00:09:08 +0000 Subject: Fix an assertion failure in legalizing bitcast operators on targets where vectors are split down to single elements as part of legalization. llvm-svn: 37785 --- llvm/test/CodeGen/ARM/illegal-vector-bitcast.ll | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 llvm/test/CodeGen/ARM/illegal-vector-bitcast.ll (limited to 'llvm/test/CodeGen/ARM/illegal-vector-bitcast.ll') diff --git a/llvm/test/CodeGen/ARM/illegal-vector-bitcast.ll b/llvm/test/CodeGen/ARM/illegal-vector-bitcast.ll new file mode 100644 index 00000000000..6785cfd6f8e --- /dev/null +++ b/llvm/test/CodeGen/ARM/illegal-vector-bitcast.ll @@ -0,0 +1,13 @@ +; RUN: llvm-as < %s | llc -march=arm + +define void @foo(<8 x float>* %f, <8 x float>* %g, <4 x i64>* %y) +{ + %h = load <8 x float>* %f + %i = mul <8 x float> %h, + %m = bitcast <8 x float> %i to <4 x i64> + %z = load <4 x i64>* %y + %n = mul <4 x i64> %z, %m + %p = bitcast <4 x i64> %n to <8 x float> + store <8 x float> %p, <8 x float>* %g + ret void +} -- cgit v1.2.3