blob: 0752f69c3e9ec211ac084653015504ffccf3055e [file] [log] [blame]
Akira Hatanakafd2cd0d2013-03-30 02:14:45 +00001; RUN: llc -march=mips -mattr=dsp < %s | FileCheck %s
2
3; CHECK: test_lbux:
4; CHECK: lbux ${{[0-9]+}}
5
6define zeroext i8 @test_lbux(i8* nocapture %b, i32 %i) {
7entry:
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
16define signext i16 @test_lhx(i16* nocapture %b, i32 %i) {
17entry:
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
26define i32 @test_lwx(i32* nocapture %b, i32 %i) {
27entry:
28 %add.ptr = getelementptr inbounds i32* %b, i32 %i
29 %0 = load i32* %add.ptr, align 4
30 ret i32 %0
31}