Krzysztof Parzyszek | 18484de | 2018-03-06 19:15:58 +0000 | [diff] [blame] | 1 | ; RUN: llc -march=hexagon < %s |
Krzysztof Parzyszek | 167d918 | 2016-07-28 20:01:59 +0000 | [diff] [blame] | 2 | ; REQUIRES: asserts |
| 3 | |
Krzysztof Parzyszek | 167d918 | 2016-07-28 20:01:59 +0000 | [diff] [blame] | 4 | target triple = "hexagon-unknown--elf" |
| 5 | |
| 6 | ; Function Attrs: nounwind readnone |
| 7 | define i64 @foo() #0 { |
| 8 | entry: |
| 9 | %0 = tail call i32 @llvm.hexagon.S2.ct0p(i64 18) |
| 10 | %1 = tail call i32 @llvm.hexagon.S2.ct1p(i64 27) |
| 11 | %2 = tail call i64 @llvm.hexagon.A2.combinew(i32 %0, i32 %1) |
| 12 | ret i64 %2 |
| 13 | } |
| 14 | |
| 15 | ; Function Attrs: nounwind readnone |
| 16 | declare i32 @llvm.hexagon.S2.ct0p(i64) #0 |
| 17 | |
| 18 | ; Function Attrs: nounwind readnone |
| 19 | declare i32 @llvm.hexagon.S2.ct1p(i64) #0 |
| 20 | |
| 21 | ; Function Attrs: nounwind readnone |
| 22 | declare i64 @llvm.hexagon.A2.combinew(i32, i32) #0 |
| 23 | |
| 24 | attributes #0 = { nounwind readnone } |
| 25 | |