31 lines · plain
1; RUN: llc -mtriple=hexagon -hexagon-small-data-threshold=0 < %s | FileCheck %s2 3; Check that CONST32/CONST64 instructions are 'not' generated when the4; small data threshold is set to 0.5 6@a = external global i327@b = external global i328@la = external global i649@lb = external global i6410 11; CHECK-LABEL: test1:12; CHECK-NOT: CONST3213define void @test1() nounwind {14entry:15 br label %block16block:17 store i32 12345670, ptr @a, align 418 %q = ptrtoint ptr blockaddress (@test1, %block) to i3219 store i32 %q, ptr @b, align 420 ret void21}22 23; CHECK-LABEL: test2:24; CHECK-NOT: CONST6425define void @test2() nounwind {26entry:27 store i64 1234567890123, ptr @la, align 828 store i64 1234567890123, ptr @lb, align 829 ret void30}31