diff options
Diffstat (limited to 'test/Transforms/ConstProp/trunc_vec.ll')
-rw-r--r-- | test/Transforms/ConstProp/trunc_vec.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/ConstProp/trunc_vec.ll b/test/Transforms/ConstProp/trunc_vec.ll new file mode 100644 index 0000000..99db329 --- /dev/null +++ b/test/Transforms/ConstProp/trunc_vec.ll @@ -0,0 +1,9 @@ +; RUN: opt -constprop < %s + +; Make sure we don't crash on this one + +define <8 x i8> @test_truc_vec() { + %x = bitcast <2 x i64> <i64 1, i64 2> to <8 x i16> + %y = trunc <8 x i16> %x to <8 x i8> + ret <8 x i8> %y +} |