2005-04-09 00:46:44 +08:00
|
|
|
; Make sure this testcase codegens to the ornot instruction
|
2007-04-16 02:40:57 +08:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep ornot
|
2005-04-09 00:46:44 +08:00
|
|
|
|
|
|
|
implementation ; Functions:
|
|
|
|
|
|
|
|
long %bar(long %x, long %y) {
|
|
|
|
entry:
|
|
|
|
%tmp.1 = xor long %x, -1 ; <long> [#uses=1]
|
2005-04-09 00:55:15 +08:00
|
|
|
%tmp.2 = or long %y, %tmp.1
|
2005-04-09 00:46:44 +08:00
|
|
|
ret long %tmp.2
|
|
|
|
}
|