brintos

brintos / llvm-project-archived public Read only

0
0
Text · 399 B · 43da003 Raw
16 lines · plain
1; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--  | \2; RUN:   grep -v align | not grep li3 4;; Test that immediates are folded into these instructions correctly.5 6define i32 @ADD(i32 %X) nounwind {7        %Y = add i32 %X, 65537          ; <i32> [#uses=1]8        ret i32 %Y9}10 11define i32 @SUB(i32 %X) nounwind {12        %Y = sub i32 %X, 65537          ; <i32> [#uses=1]13        ret i32 %Y14}15 16