summaryrefslogtreecommitdiffstats
path: root/llvm/test/Linker/Inputs/thumb.ll
blob: e15fb26a8c7e16c6d89c9d40f13c6aa89979898b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
target triple = "thumbv7-linux-gnueabihf"

define i32 @foo(i32 %a, i32 %b) #0 {
entry:
  %add = add i32 %a, %b
  ret i32 %add
}

define i32 @bar(i32 %a, i32 %b) #1 {
entry:
  %add = add i32 %a, %b
  ret i32 %add
}

attributes #0 = { "target-features"="-thumb-mode" }
attributes #1 = { "target-features"="+thumb-mode" }
OpenPOWER on IntegriCloud