1; RUN: llc -march=hexagon -mcpu=hexagonv5 -hexagon-small-data-threshold=0 < %s | FileCheck %s
2
3; Check that CONST32/CONST64 instructions are 'not' generated when
4; small-data-threshold is set to 0.
5
6; with immediate value.
7@a = external global i32
8@b = external global i32
9@la = external global i64
10@lb = external global i64
11
12define void @test1() nounwind {
13; CHECK-NOT: CONST32
14entry:
15  store i32 12345670, i32* @a, align 4
16  store i32 12345670, i32* @b, align 4
17  ret void
18}
19
20define void @test2() nounwind {
21; CHECK-NOT: CONST64
22entry:
23  store i64 1234567890123, i64* @la, align 8
24  store i64 1234567890123, i64* @lb, align 8
25  ret void
26}
27