Andrew Lenharth | f701697 | 2005-04-13 13:00:16 +0000 | [diff] [blame] | 1 | ; Make sure this testcase codegens to the bic instruction |
Reid Spencer | eacb702 | 2006-12-31 06:02:00 +0000 | [diff] [blame^] | 2 | ; RUN: llvm-as < %s | llc -march=alpha | grep 'zapnot' |
Andrew Lenharth | f701697 | 2005-04-13 13:00:16 +0000 | [diff] [blame] | 3 | |
| 4 | implementation ; Functions: |
| 5 | |
Reid Spencer | eacb702 | 2006-12-31 06:02:00 +0000 | [diff] [blame^] | 6 | define i16 @zext %foo(i64 %y) { |
Andrew Lenharth | f701697 | 2005-04-13 13:00:16 +0000 | [diff] [blame] | 7 | entry: |
Reid Spencer | eacb702 | 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 | f701697 | 2005-04-13 13:00:16 +0000 | [diff] [blame] | 10 | } |