39 lines · plain
1; RUN: llc -mtriple=hexagon -mcpu=hexagonv5 -O3 -disable-hsdr < %s | FileCheck %s2 3; Check that we combine TFRs and TFRIs into COMBINEs.4 5@a = external global i166@b = external global i167@c = external global i168 9declare void @test0a(i32, i32) #010declare void @test0b(i32, i32, i32, i32) #011 12; CHECK-LABEL: test1:13; CHECK: combine(#10,#0)14define i32 @test1() #0 {15entry:16 call void @test0a(i32 0, i32 10) #017 ret i32 1018}19 20; CHECK-LABEL: test2:21; CHECK: combine(#0,r{{[0-9]+}})22define i32 @test2() #0 {23entry:24 %t0 = load i16, ptr @c, align 225 %t1 = zext i16 %t0 to i3226 call void @test0b(i32 %t1, i32 0, i32 %t1, i32 0)27 ret i32 028}29 30; CHECK-LABEL: test3:31; CHECK: combine(#0,#100)32define i32 @test3() #0 {33entry:34 call void @test0a(i32 100, i32 0)35 ret i32 036}37 38attributes #0 = { nounwind }39