1 ; RUN: llc -march=mips < %s | FileCheck %s --check-prefix=BE
2 ; RUN: llc -march=mipsel < %s | FileCheck %s --check-prefix=LE
3 ; Check assembly printing of odd constants.
6 ; BE-NEXT: .8byte 28829195638097253
10 ; BE-NEXT: .size bigCst, 16
13 ; LE-NEXT: .8byte 12713950999227904
14 ; LE-NEXT: .2byte 26220
17 ; LE-NEXT: .size bigCst, 16
19 ; BE-LABEL: notSoBigCst:
20 ; BE-NEXT: .8byte 72057594037927935
21 ; BE-NEXT: .size notSoBigCst, 8
23 ; LE-LABEL: notSoBigCst:
24 ; LE-NEXT: .8byte 72057594037927935
25 ; LE-NEXT: .size notSoBigCst, 8
28 ; BE-NEXT: .2byte 4386
31 ; BE-NEXT: .size smallCst, 4
34 ; LE-NEXT: .2byte 8755
37 ; LE-NEXT: .size smallCst, 4
39 @bigCst = internal constant i82 483673642326615442599424
41 define void @accessBig(ptr %storage) {
42 %bigLoadedCst = load volatile i82, ptr @bigCst
43 %tmp = add i82 %bigLoadedCst, 1
44 store i82 %tmp, ptr %storage
48 @notSoBigCst = internal constant i57 72057594037927935
50 define void @accessNotSoBig(ptr %storage) {
51 %bigLoadedCst = load volatile i57, ptr @notSoBigCst
52 %tmp = add i57 %bigLoadedCst, 1
53 store i57 %tmp, ptr %storage
57 @smallCst = internal constant i24 1122867