1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/CodeGen/Hexagon/union-1.ll
Krzysztof Parzyszek f9268a010f [Hexagon] Remove support for V4
llvm-svn: 344791
2018-10-19 17:31:11 +00:00

22 lines
504 B
LLVM

; RUN: llc -march=hexagon < %s | FileCheck %s
; CHECK: f0
; CHECK-NOT: combine(#0
; CHECK: jump f1
define void @f0(i32* nocapture %a0) #0 {
b0:
%v0 = load i32, i32* %a0, align 4
%v1 = zext i32 %v0 to i64
%v2 = getelementptr inbounds i32, i32* %a0, i32 1
%v3 = load i32, i32* %v2, align 4
%v4 = zext i32 %v3 to i64
%v5 = shl nuw i64 %v4, 32
%v6 = or i64 %v5, %v1
tail call void @f1(i64 %v6) #0
ret void
}
declare void @f1(i64) #0
attributes #0 = { nounwind "target-cpu"="hexagonv5" }