~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/X86/atom-lea-addw-bug.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc < %s -mcpu=atom | FileCheck %s
 
2
 
 
3
; ModuleID = 'bugpoint-reduced-simplified.bc'
 
4
target triple = "x86_64-apple-darwin12.5.0"
 
5
 
 
6
define i32 @DoLayout() {
 
7
entry:
 
8
  %tmp1 = load i16, i16* undef, align 2
 
9
  %tmp17 = load i16, i16* null, align 2
 
10
  %tmp19 = load i16, i16* undef, align 2
 
11
  %shl = shl i16 %tmp19, 1
 
12
  %add55 = add i16 %tmp17, %tmp1
 
13
  %add57 = add i16 %add55, %shl
 
14
  %conv60 = zext i16 %add57 to i32
 
15
  %add61 = add nsw i32 %conv60, 0
 
16
  %conv63 = and i32 %add61, 65535
 
17
  ret i32 %conv63
 
18
; CHECK: addw
 
19
}