Zoran Jovanovic | 71a33e2 | 2015-02-27 15:03:50 +0000 | [diff] [blame] | 1 | ; RUN: llc -march=mipsel -mcpu=mips32r2 -mattr=+micromips \ |
| 2 | ; RUN: -relocation-model=pic -O3 < %s | FileCheck %s |
| 3 | |
| 4 | @g = external global i32 |
| 5 | |
| 6 | ; Function Attrs: noreturn nounwind |
| 7 | define void @foo() #0 { |
| 8 | entry: |
David Blaikie | a79ac14 | 2015-02-27 21:17:42 +0000 | [diff] [blame] | 9 | %0 = load i32, i32* @g, align 4 |
Zoran Jovanovic | 71a33e2 | 2015-02-27 15:03:50 +0000 | [diff] [blame] | 10 | tail call void @exit(i32 signext %0) |
| 11 | unreachable |
| 12 | } |
| 13 | |
| 14 | ; Function Attrs: noreturn |
| 15 | declare void @exit(i32 signext) |
| 16 | |
| 17 | ; CHECK: move $gp, ${{[0-9]+}} |
| 18 | |