blob: 91e81c78ebf6875f1e53736f2357faed0464b424 [file] [log] [blame]
Chandler Carruth49589f02012-07-02 18:37:59 +00001; RUN: not llvm-as < %s 2>&1 | FileCheck %s
Bill Wendlinga0126af2012-04-08 11:00:38 +00002
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}