2018-03-12 22:01:28 +08:00
|
|
|
; RUN: llc -march=hexagon < %s | FileCheck %s
|
2018-06-12 20:49:36 +08:00
|
|
|
; CHECK: rol
|
2018-03-12 22:01:28 +08:00
|
|
|
|
|
|
|
; Function Attrs: nounwind
|
2018-08-03 06:17:53 +08:00
|
|
|
define fastcc void @f0(i64* %a0) #0 {
|
|
|
|
b0: ; preds = %b3, %b2
|
|
|
|
%v0 = load i64, i64* %a0, align 8, !tbaa !0
|
2018-03-12 22:01:28 +08:00
|
|
|
%v1 = lshr i64 %v0, 8
|
|
|
|
%v2 = shl i64 %v0, 56
|
|
|
|
%v3 = or i64 %v2, %v1
|
|
|
|
%v4 = xor i64 %v3, 0
|
|
|
|
%v5 = xor i64 %v4, 0
|
|
|
|
%v6 = add i64 0, %v5
|
2018-08-03 06:17:53 +08:00
|
|
|
store i64 %v6, i64* %a0, align 8, !tbaa !0
|
|
|
|
ret void
|
2018-03-12 22:01:28 +08:00
|
|
|
}
|
|
|
|
|
2018-06-12 20:49:36 +08:00
|
|
|
attributes #0 = { nounwind "target-cpu"="hexagonv60" }
|
2018-03-12 22:01:28 +08:00
|
|
|
|
|
|
|
!0 = !{!1, !1, i64 0}
|
|
|
|
!1 = !{!"long long", !2}
|
|
|
|
!2 = !{!"omnipotent char", !3}
|
|
|
|
!3 = !{!"Simple C/C++ TBAA"}
|