Stackmap shadows should consider call returns a branch target.
[oota-llvm.git] / test / CodeGen / Mips / rdhwr-directives.ll
1 ; RUN: llc -march=mipsel -mcpu=mips32 -relocation-model=static < %s | FileCheck %s
2
3 @a = external thread_local global i32
4
5 define i32 @foo() nounwind readonly {
6 entry:
7 ; CHECK: .set  push
8 ; CHECK: .set  mips32r2
9 ; CHECK: rdhwr 
10 ; CHECK: .set  pop
11
12   %0 = load i32* @a, align 4
13   ret i32 %0
14 }
15