view test/CodeGen/X86/isel-sink2.ll @ 33:e4204d083e25

LLVM 3.5
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Thu, 12 Dec 2013 14:32:10 +0900
parents 95c75e76d11b
children afa8332a0e37
line wrap: on
line source

; RUN: llc < %s -march=x86 > %t
; RUN: grep "movb.7(%...)" %t
; RUN: not grep leal %t

define i8 @test(i32 *%P) nounwind {
  %Q = getelementptr i32* %P, i32 1
  %R = bitcast i32* %Q to i8*
  %S = load i8* %R
  %T = icmp eq i8 %S, 0
  br i1 %T, label %TB, label %F
TB:
  ret i8 4
F:
  %U = getelementptr i8* %R, i32 3
  %V = load i8* %U
  ret i8 %V
}