Akira Hatanaka | 6028796 | 2012-07-21 03:30:44 +0000 | [diff] [blame] | 1 | ; RUN: llc -march=mipsel -force-mips-long-branch < %s | FileCheck %s -check-prefix=O32 |
| 2 | ; RUN: llc -march=mips64el -mcpu=mips64 -mattr=n64 -force-mips-long-branch < %s | FileCheck %s -check-prefix=N64 |
Akira Hatanaka | ce5c6fb | 2012-06-14 02:12:21 +0000 | [diff] [blame] | 3 | |
| 4 | @g0 = external global i32 |
| 5 | |
| 6 | define void @foo1(i32 %s) nounwind { |
| 7 | entry: |
Akira Hatanaka | 6028796 | 2012-07-21 03:30:44 +0000 | [diff] [blame] | 8 | ; O32: bal |
| 9 | ; N64: bal |
| 10 | ; N64: highest |
| 11 | ; N64: higher |
Akira Hatanaka | ce5c6fb | 2012-06-14 02:12:21 +0000 | [diff] [blame] | 12 | |
| 13 | %tobool = icmp eq i32 %s, 0 |
| 14 | br i1 %tobool, label %if.end, label %if.then |
| 15 | |
| 16 | if.then: ; preds = %entry |
| 17 | %0 = load i32* @g0, align 4 |
| 18 | %add = add nsw i32 %0, 12 |
| 19 | store i32 %add, i32* @g0, align 4 |
| 20 | br label %if.end |
| 21 | |
| 22 | if.end: ; preds = %entry, %if.then |
| 23 | ret void |
| 24 | } |
| 25 | |