X86: Stop LEA64_32r doing unspeakable things to its arguments.
[oota-llvm.git] / test / CodeGen / Mips / 2008-07-16-SignExtInReg.ll
1 ; RUN: llc < %s -march=mips -mcpu=mips32r2 | FileCheck %s 
2 ; RUN: llc < %s -march=mips64 -mcpu=mips64r2 | FileCheck %s 
3
4 define signext i8 @A(i8 %e.0, i8 signext %sum)  nounwind {
5 entry:
6 ; CHECK: seb
7         add i8 %sum, %e.0               ; <i8>:0 [#uses=1]
8         ret i8 %0
9 }
10
11 define signext i16 @B(i16 %e.0, i16 signext %sum) nounwind {
12 entry:
13 ; CHECK: seh
14         add i16 %sum, %e.0              ; <i16>:0 [#uses=1]
15         ret i16 %0
16 }
17