Simon Atanasyan | 1093afe2 | 2013-11-19 12:20:17 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=mips -mcpu=mips32r2 | FileCheck %s |
| 2 | ; RUN: llc < %s -march=mips64 -mcpu=mips64r2 | FileCheck %s |
| 3 | ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips32r2 -mattr=+mips16 < %s | FileCheck %s |
Bruno Cardoso Lopes | 32d4b5a | 2008-08-08 04:08:30 +0000 | [diff] [blame] | 4 | |
Chris Lattner | b90ed22 | 2011-06-17 03:14:27 +0000 | [diff] [blame] | 5 | define signext i8 @A(i8 %e.0, i8 signext %sum) nounwind { |
Bruno Cardoso Lopes | 32d4b5a | 2008-08-08 04:08:30 +0000 | [diff] [blame] | 6 | entry: |
Akira Hatanaka | 9f7ec15 | 2012-01-24 21:41:09 +0000 | [diff] [blame] | 7 | ; CHECK: seb |
Bruno Cardoso Lopes | 32d4b5a | 2008-08-08 04:08:30 +0000 | [diff] [blame] | 8 | add i8 %sum, %e.0 ; <i8>:0 [#uses=1] |
| 9 | ret i8 %0 |
| 10 | } |
| 11 | |
Chris Lattner | b90ed22 | 2011-06-17 03:14:27 +0000 | [diff] [blame] | 12 | define signext i16 @B(i16 %e.0, i16 signext %sum) nounwind { |
Bruno Cardoso Lopes | 32d4b5a | 2008-08-08 04:08:30 +0000 | [diff] [blame] | 13 | entry: |
Akira Hatanaka | 9f7ec15 | 2012-01-24 21:41:09 +0000 | [diff] [blame] | 14 | ; CHECK: seh |
Bruno Cardoso Lopes | 32d4b5a | 2008-08-08 04:08:30 +0000 | [diff] [blame] | 15 | add i16 %sum, %e.0 ; <i16>:0 [#uses=1] |
| 16 | ret i16 %0 |
| 17 | } |
| 18 | |