1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=sparc | FileCheck %s -check-prefix=SPARC
4 ; Materializing constants
6 define i32 @zero() nounwind {
10 ; SPARC-NEXT: mov %g0, %o0
14 define i32 @pos_small() nounwind {
15 ; SPARC-LABEL: pos_small:
18 ; SPARC-NEXT: mov 2047, %o0
22 define i32 @neg_small() nounwind {
23 ; SPARC-LABEL: neg_small:
26 ; SPARC-NEXT: mov -2047, %o0
30 define i32 @pos_i32() nounwind {
31 ; SPARC-LABEL: pos_i32:
33 ; SPARC-NEXT: sethi 1695242, %o0
35 ; SPARC-NEXT: or %o0, 751, %o0
39 define i32 @neg_i32() nounwind {
40 ; SPARC-LABEL: neg_i32:
42 ; SPARC-NEXT: sethi 3648367, %o0
44 ; SPARC-NEXT: or %o0, 751, %o0