comparison test/CodeGen/AArch64/arm64-fastisel-gep-promote-before-add.ll @ 95:afa8332a0e37

LLVM 3.8
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Tue, 13 Oct 2015 17:48:58 +0900
parents 54457678186b
children
comparison
equal deleted inserted replaced
84:f3e34b893a5f 95:afa8332a0e37
4 4
5 define zeroext i8 @gep_promotion(i8* %ptr) nounwind uwtable ssp { 5 define zeroext i8 @gep_promotion(i8* %ptr) nounwind uwtable ssp {
6 entry: 6 entry:
7 %ptr.addr = alloca i8*, align 8 7 %ptr.addr = alloca i8*, align 8
8 %add = add i8 64, 64 ; 0x40 + 0x40 8 %add = add i8 64, 64 ; 0x40 + 0x40
9 %0 = load i8** %ptr.addr, align 8 9 %0 = load i8*, i8** %ptr.addr, align 8
10 10
11 ; CHECK-LABEL: _gep_promotion: 11 ; CHECK-LABEL: _gep_promotion:
12 ; CHECK: ldrb {{[a-z][0-9]+}}, {{\[[a-z][0-9]+\]}} 12 ; CHECK: ldrb {{[a-z][0-9]+}}, {{\[[a-z][0-9]+\]}}
13 %arrayidx = getelementptr inbounds i8* %0, i8 %add 13 %arrayidx = getelementptr inbounds i8, i8* %0, i8 %add
14 14
15 %1 = load i8* %arrayidx, align 1 15 %1 = load i8, i8* %arrayidx, align 1
16 ret i8 %1 16 ret i8 %1
17 } 17 }
18 18