repo.or.cz
/
llvm-core.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Signed saturation patterns
[llvm-core.git]
/
test
/
CodeGen
/
Mips
/
micromips-rdhwr-directives.ll
blob
ebe4dddd0124bb6e73b8e1795fb29686691f8646
1
; RUN: llc -march=mipsel -mcpu=mips32 -relocation-model=static < %s \
2
; RUN: -mattr=+micromips | FileCheck %s
3
4
@a = external thread_local global i32
5
6
define i32 @foo() nounwind readonly {
7
entry:
8
; CHECK: .set push
9
; CHECK: .set mips32r2
10
; CHECK: rdhwr
11
; CHECK: .set pop
12
13
%0 = load i32, i32* @a, align 4
14
ret i32 %0
15
}