blob: 05e90ece31b0c2bf3a9aa6850894b6fa7eb4eb01 [file] [log] [blame]
Andrew Lenharthf7016972005-04-13 13:00:16 +00001; Make sure this testcase codegens to the bic instruction
Reid Spencer65f47a32007-04-15 18:40:57 +00002; RUN: llvm-as < %s | llc -march=alpha | grep zapnot
Andrew Lenharthf7016972005-04-13 13:00:16 +00003
Andrew Lenharthf7016972005-04-13 13:00:16 +00004
Reid Spencere3ff5ad2007-01-26 08:25:06 +00005define i16 @foo(i64 %y) zext {
Andrew Lenharthf7016972005-04-13 13:00:16 +00006entry:
Reid Spencereacb7022006-12-31 06:02:00 +00007 %tmp.1 = trunc i64 %y to i16 ; <ushort> [#uses=1]
8 ret i16 %tmp.1
Andrew Lenharthf7016972005-04-13 13:00:16 +00009}