2018-03-07 03:15:58 +08:00
|
|
|
; RUN: llc -march=hexagon < %s
|
2016-07-29 04:01:59 +08:00
|
|
|
; REQUIRES: asserts
|
|
|
|
|
|
|
|
target triple = "hexagon-unknown--elf"
|
|
|
|
|
|
|
|
; Function Attrs: nounwind readnone
|
|
|
|
define i64 @foo() #0 {
|
|
|
|
entry:
|
|
|
|
%0 = tail call i32 @llvm.hexagon.S2.clbp(i64 291)
|
|
|
|
%1 = tail call i64 @llvm.hexagon.A4.combineir(i32 0, i32 %0)
|
|
|
|
ret i64 %1
|
|
|
|
}
|
|
|
|
|
|
|
|
; Function Attrs: nounwind readnone
|
2018-03-07 03:15:58 +08:00
|
|
|
declare i32 @llvm.hexagon.S2.clbp(i64) #0
|
2016-07-29 04:01:59 +08:00
|
|
|
|
|
|
|
; Function Attrs: nounwind readnone
|
2018-03-07 03:15:58 +08:00
|
|
|
declare i64 @llvm.hexagon.A4.combineir(i32, i32) #0
|
2016-07-29 04:01:59 +08:00
|
|
|
|
2018-03-07 03:15:58 +08:00
|
|
|
attributes #0 = { nounwind readnone }
|
2016-07-29 04:01:59 +08:00
|
|
|
|