blob: f6828357243629664245568a19533e121c1b03f8 [file] [log] [blame]
Bill Wendlinga0126af2012-04-08 11:00:38 +00001; RUN: not llvm-as < %s |& FileCheck %s
2
3; CHECK: invalid cast opcode for cast from '<4 x i64>' to '<3 x i8>'
Duncan Sandsbb1695e2011-05-18 09:21:57 +00004
5define <3 x i8> @foo(<4 x i64> %x) {
6 %y = trunc <4 x i64> %x to <3 x i8>
7 ret <3 x i8> %y
8}