| Eric Christopher | 1d6c89e | 2012-05-07 03:13:32 +0000 | [diff] [blame] | 1 | ; |
| 2 | ; Register constraint "r" shouldn't take long long unless |
| 3 | ; The target is 64 bit. |
| 4 | ; |
| 5 | ; |
| Vladimir Medic | 187958b | 2015-02-26 12:29:48 +0000 | [diff] [blame] | 6 | ; RUN: llc -march=mips64el -mcpu=mips64r2 -target-abi=n64 < %s | FileCheck %s |
| Eric Christopher | 1d6c89e | 2012-05-07 03:13:32 +0000 | [diff] [blame] | 7 | |
| 8 | |
| 9 | define i32 @main() nounwind { |
| 10 | entry: |
| 11 | |
| 12 | |
| 13 | ; r with long long |
| 14 | ;CHECK: #APP |
| Daniel Sanders | 00a4aac | 2015-11-16 14:14:59 +0000 | [diff] [blame] | 15 | ;CHECK: addiu ${{[0-9]+}}, ${{[0-9]+}}, 3 |
| Eric Christopher | 1d6c89e | 2012-05-07 03:13:32 +0000 | [diff] [blame] | 16 | ;CHECK: #NO_APP |
| Daniel Sanders | 00a4aac | 2015-11-16 14:14:59 +0000 | [diff] [blame] | 17 | tail call i64 asm sideeffect "addiu $0, $1, $2", "=r,r,i"(i64 7, i64 3) nounwind |
| Eric Christopher | 1d6c89e | 2012-05-07 03:13:32 +0000 | [diff] [blame] | 18 | ret i32 0 |
| 19 | } |
| 20 | |