2009-09-09 07:54:48 +08:00
|
|
|
; RUN: llc < %s -mtriple=i386-linux | FileCheck %s
|
2009-08-02 06:25:12 +08:00
|
|
|
%union.x = type { i64 }
|
|
|
|
|
|
|
|
; CHECK: .globl r
|
|
|
|
; CHECK: r:
|
2010-01-23 14:17:14 +08:00
|
|
|
; CHECK: .quad r&4294967295
|
2009-08-02 06:25:12 +08:00
|
|
|
|
|
|
|
@r = global %union.x { i64 ptrtoint (%union.x* @r to i64) }, align 4
|
2010-02-09 06:02:38 +08:00
|
|
|
|
|
|
|
; CHECK: .globl x
|
|
|
|
; CHECK: x:
|
2010-02-23 06:43:23 +08:00
|
|
|
; CHECK: .quad ((0+1)&4294967295)*3
|
2010-02-09 06:02:38 +08:00
|
|
|
|
|
|
|
@x = global i64 mul (i64 3, i64 ptrtoint (i2* getelementptr (i2* null, i64 1) to i64))
|