blob: 9f0035097b0ef49bcba852b9be25c3ee10ff024a [file] [log] [blame]
Andrew Lenharthb8a5d632005-04-08 16:46:44 +00001; Make sure this testcase codegens to the bic instruction
Dan Gohmanfce288f2009-09-09 00:09:15 +00002; RUN: llc < %s -march=alpha | grep {bic}
Andrew Lenharthb8a5d632005-04-08 16:46:44 +00003
Tanya Lattner53a66d12008-02-19 01:41:04 +00004define i64 @bar(i64 %x, i64 %y) {
Andrew Lenharthb8a5d632005-04-08 16:46:44 +00005entry:
Tanya Lattner53a66d12008-02-19 01:41:04 +00006 %tmp.1 = xor i64 %x, -1 ; <i64> [#uses=1]
7 %tmp.2 = and i64 %y, %tmp.1 ; <i64> [#uses=1]
8 ret i64 %tmp.2
Andrew Lenharthb8a5d632005-04-08 16:46:44 +00009}