blob: d1cb34bec8a09b6146b12ecf01f117d16b8d63bf [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; RUN: llc < %s -mtriple=i386-linux | FileCheck %s
Chris Lattner34e4cde2009-08-01 22:25:12 +00002 %union.x = type { i64 }
3
4; CHECK: .globl r
5; CHECK: r:
Chris Lattner54bfda72010-01-23 06:17:14 +00006; CHECK: .quad r&4294967295
Chris Lattner34e4cde2009-08-01 22:25:12 +00007
8@r = global %union.x { i64 ptrtoint (%union.x* @r to i64) }, align 4
Dan Gohman8e0ed342010-02-08 22:02:38 +00009
10; CHECK: .globl x
11; CHECK: x:
Dan Gohman6f493e12010-02-22 22:43:23 +000012; CHECK: .quad ((0+1)&4294967295)*3
Dan Gohman8e0ed342010-02-08 22:02:38 +000013
14@x = global i64 mul (i64 3, i64 ptrtoint (i2* getelementptr (i2* null, i64 1) to i64))