Akira Hatanaka | fd2cd0d | 2013-03-30 02:14:45 +0000 | [diff] [blame^] | 1 | ; RUN: llc -march=mips -mattr=dsp < %s | FileCheck %s |
| 2 | |
| 3 | ; CHECK: test_lbux: |
| 4 | ; CHECK: lbux ${{[0-9]+}} |
| 5 | |
| 6 | define zeroext i8 @test_lbux(i8* nocapture %b, i32 %i) { |
| 7 | entry: |
| 8 | %add.ptr = getelementptr inbounds i8* %b, i32 %i |
| 9 | %0 = load i8* %add.ptr, align 1 |
| 10 | ret i8 %0 |
| 11 | } |
| 12 | |
| 13 | ; CHECK: test_lhx: |
| 14 | ; CHECK: lhx ${{[0-9]+}} |
| 15 | |
| 16 | define signext i16 @test_lhx(i16* nocapture %b, i32 %i) { |
| 17 | entry: |
| 18 | %add.ptr = getelementptr inbounds i16* %b, i32 %i |
| 19 | %0 = load i16* %add.ptr, align 2 |
| 20 | ret i16 %0 |
| 21 | } |
| 22 | |
| 23 | ; CHECK: test_lwx: |
| 24 | ; CHECK: lwx ${{[0-9]+}} |
| 25 | |
| 26 | define i32 @test_lwx(i32* nocapture %b, i32 %i) { |
| 27 | entry: |
| 28 | %add.ptr = getelementptr inbounds i32* %b, i32 %i |
| 29 | %0 = load i32* %add.ptr, align 4 |
| 30 | ret i32 %0 |
| 31 | } |