Renato Golin | 38ed802 | 2016-05-17 19:52:01 +0000 | [diff] [blame] | 1 | ; RUN: not llc -mcpu=pwr7 -o /dev/null %s 2>&1 | FileCheck %s |
Hal Finkel | 34d4149 | 2015-10-28 22:25:52 +0000 | [diff] [blame] | 2 | target datalayout = "E-m:e-i64:64-n32:64" |
| 3 | target triple = "powerpc64-unknown-linux-gnu" |
| 4 | |
| 5 | define zeroext i1 @testi1(i1 zeroext %b1, i1 zeroext %b2) #0 { |
| 6 | entry: |
| 7 | %0 = tail call i8 asm "crand $0, $1, $2", "=^wc,^wc,^wc"(i1 %b1, i1 %b2) #0 |
| 8 | %1 = and i8 %0, 1 |
| 9 | %tobool3 = icmp ne i8 %1, 0 |
| 10 | ret i1 %tobool3 |
| 11 | |
| 12 | ; CHECK: error: couldn't allocate output register for constraint 'wc' |
| 13 | } |
| 14 | |
| 15 | attributes #0 = { nounwind "target-features"="-crbits" } |
| 16 | |