~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/Hexagon/union-1.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 -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s
 
2
; CHECK: word
 
3
; CHECK-NOT: combine(#0
 
4
; CHECK: jump bar
 
5
; XFAIL: *
 
6
; Disable this test temporarily.
 
7
 
 
8
define void @word(i32* nocapture %a) nounwind {
 
9
entry:
 
10
  %0 = load i32, i32* %a, align 4
 
11
  %1 = zext i32 %0 to i64
 
12
  %add.ptr = getelementptr inbounds i32, i32* %a, i32 1
 
13
  %2 = load i32, i32* %add.ptr, align 4
 
14
  %3 = zext i32 %2 to i64
 
15
  %4 = shl nuw i64 %3, 32
 
16
  %ins = or i64 %4, %1
 
17
  tail call void @bar(i64 %ins) nounwind
 
18
  ret void
 
19
}
 
20
 
 
21
declare void @bar(i64)