comparison test/CodeGen/Mips/dsp-patterns.ll @ 95:afa8332a0e37 LLVM3.8

LLVM 3.8
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Tue, 13 Oct 2015 17:48:58 +0900
parents 95c75e76d11b
children 803732b1fca8
comparison
equal deleted inserted replaced
84:f3e34b893a5f 95:afa8332a0e37
4 ; R1-LABEL: test_lbux: 4 ; R1-LABEL: test_lbux:
5 ; R1: lbux ${{[0-9]+}} 5 ; R1: lbux ${{[0-9]+}}
6 6
7 define zeroext i8 @test_lbux(i8* nocapture %b, i32 %i) { 7 define zeroext i8 @test_lbux(i8* nocapture %b, i32 %i) {
8 entry: 8 entry:
9 %add.ptr = getelementptr inbounds i8* %b, i32 %i 9 %add.ptr = getelementptr inbounds i8, i8* %b, i32 %i
10 %0 = load i8* %add.ptr, align 1 10 %0 = load i8, i8* %add.ptr, align 1
11 ret i8 %0 11 ret i8 %0
12 } 12 }
13 13
14 ; R1-LABEL: test_lhx: 14 ; R1-LABEL: test_lhx:
15 ; R1: lhx ${{[0-9]+}} 15 ; R1: lhx ${{[0-9]+}}
16 16
17 define signext i16 @test_lhx(i16* nocapture %b, i32 %i) { 17 define signext i16 @test_lhx(i16* nocapture %b, i32 %i) {
18 entry: 18 entry:
19 %add.ptr = getelementptr inbounds i16* %b, i32 %i 19 %add.ptr = getelementptr inbounds i16, i16* %b, i32 %i
20 %0 = load i16* %add.ptr, align 2 20 %0 = load i16, i16* %add.ptr, align 2
21 ret i16 %0 21 ret i16 %0
22 } 22 }
23 23
24 ; R1-LABEL: test_lwx: 24 ; R1-LABEL: test_lwx:
25 ; R1: lwx ${{[0-9]+}} 25 ; R1: lwx ${{[0-9]+}}
26 26
27 define i32 @test_lwx(i32* nocapture %b, i32 %i) { 27 define i32 @test_lwx(i32* nocapture %b, i32 %i) {
28 entry: 28 entry:
29 %add.ptr = getelementptr inbounds i32* %b, i32 %i 29 %add.ptr = getelementptr inbounds i32, i32* %b, i32 %i
30 %0 = load i32* %add.ptr, align 4 30 %0 = load i32, i32* %add.ptr, align 4
31 ret i32 %0 31 ret i32 %0
32 } 32 }
33 33
34 ; R1-LABEL: test_add_v2q15_: 34 ; R1-LABEL: test_add_v2q15_:
35 ; R1: addq.ph ${{[0-9]+}} 35 ; R1: addq.ph ${{[0-9]+}}