1 ; RUN: llc -march=hexagon -O0 < %s | FileCheck %s
2 ; CHECK: r{{[0-9]*}}:{{[0-9]*}} = rol(r{{[0-9]*}}:{{[0-9]*}},#4)
4 target triple = "hexagon"
6 @g0 = private unnamed_addr constant [33 x i8] c"%llx : Q6_P_rol_PI(LONG_MIN,0)\0A\00", align 1
8 ; Function Attrs: nounwind
9 declare i32 @f0(ptr, ...) #0
11 ; Function Attrs: nounwind
14 %v0 = alloca i32, align 4
15 %v1 = alloca i32, align 4
17 store i32 0, ptr %v1, align 4
18 %v2 = call i64 @llvm.hexagon.S6.rol.i.p(i64 483648, i32 4)
19 %v3 = call i32 (ptr, ...) @f0(ptr @g0, i64 %v2) #2
23 ; Function Attrs: nounwind readnone
24 declare i64 @llvm.hexagon.S6.rol.i.p(i64, i32) #1
26 attributes #0 = { nounwind "target-cpu"="hexagonv60" }
27 attributes #1 = { nounwind readnone }
28 attributes #2 = { nounwind }