blob: 92d8da500e840d23ce6f25e6fbe1335d9fe6467e [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=ppc32 | \
Reid Spencereb1d74e2007-04-16 17:36:08 +00002; RUN: grep -v align | not grep li
Chris Lattner3a972c22005-09-28 23:03:11 +00003
4;; Test that immediates are folded into these instructions correctly.
5
Dale Johannesen1d3863f2008-03-31 23:20:09 +00006define i32 @ADD(i32 %X) nounwind {
Tanya Lattnercfab3da2008-02-19 08:07:33 +00007 %Y = add i32 %X, 65537 ; <i32> [#uses=1]
8 ret i32 %Y
Chris Lattner3a972c22005-09-28 23:03:11 +00009}
10
Dale Johannesen1d3863f2008-03-31 23:20:09 +000011define i32 @SUB(i32 %X) nounwind {
Tanya Lattnercfab3da2008-02-19 08:07:33 +000012 %Y = sub i32 %X, 65537 ; <i32> [#uses=1]
13 ret i32 %Y
Chris Lattner3a972c22005-09-28 23:03:11 +000014}
Tanya Lattnercfab3da2008-02-19 08:07:33 +000015