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(i64* %storage) {
42 %addr = bitcast i64* %storage to i82*
43 %bigLoadedCst = load volatile i82, i82* @bigCst
44 %tmp = add i82 %bigLoadedCst, 1
45 store i82 %tmp, i82* %addr
49 @notSoBigCst = internal constant i57 72057594037927935
51 define void @accessNotSoBig(i64* %storage) {
52 %addr = bitcast i64* %storage to i57*
53 %bigLoadedCst = load volatile i57, i57* @notSoBigCst
54 %tmp = add i57 %bigLoadedCst, 1
55 store i57 %tmp, i57* %addr
59 @smallCst = internal constant i24 1122867