Andrew Lenharth | 714dd6a | 2005-04-13 13:00:16 +0000 | [diff] [blame] | 1 | ; Make sure this testcase codegens to the bic instruction |
Reid Spencer | deb4d5a | 2006-12-31 06:02:00 +0000 | [diff] [blame] | 2 | ; RUN: llvm-as < %s | llc -march=alpha | grep 'zapnot' |
Andrew Lenharth | 714dd6a | 2005-04-13 13:00:16 +0000 | [diff] [blame] | 3 | |
| 4 | implementation ; Functions: |
| 5 | |
Reid Spencer | 1cc9bbd | 2007-01-05 17:41:34 +0000 | [diff] [blame] | 6 | define i16 %foo(i64 %y) zext { |
Andrew Lenharth | 714dd6a | 2005-04-13 13:00:16 +0000 | [diff] [blame] | 7 | entry: |
Reid Spencer | deb4d5a | 2006-12-31 06:02:00 +0000 | [diff] [blame] | 8 | %tmp.1 = trunc i64 %y to i16 ; <ushort> [#uses=1] |
| 9 | ret i16 %tmp.1 |
Andrew Lenharth | 714dd6a | 2005-04-13 13:00:16 +0000 | [diff] [blame] | 10 | } |