comparison test/CodeGen/PowerPC/2011-12-08-DemandedBitsMiscompile.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 95c75e76d11b
children 1172e4bd9c6f
comparison
equal deleted inserted replaced
84:f3e34b893a5f 95:afa8332a0e37
1 ; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=g4 | FileCheck %s 1 ; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=g4 | FileCheck %s
2 2
3 define void @test(i32* nocapture %x, i64* %xx, i32* %yp) nounwind uwtable ssp { 3 define void @test(i32* nocapture %x, i64* %xx, i32* %yp) nounwind uwtable ssp {
4 entry: 4 entry:
5 %yy = load i32* %yp 5 %yy = load i32, i32* %yp
6 %y = add i32 %yy, 1 6 %y = add i32 %yy, 1
7 %z = zext i32 %y to i64 7 %z = zext i32 %y to i64
8 %z2 = shl i64 %z, 32 8 %z2 = shl i64 %z, 32
9 store i64 %z2, i64* %xx, align 4 9 store i64 %z2, i64* %xx, align 4
10 ret void 10 ret void