blob: a01b935629f56d28325bf3deafc24e93135fd119 [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 'i8'
Duncan Sandsbb1695e2011-05-18 09:21:57 +00004
5define i8 @foo(<4 x i64> %x) {
6 %y = trunc <4 x i64> %x to i8
7 ret i8 %y
8}