llvm.org GIT mirror llvm / 286505a
testcase for pr1049 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32632 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 34 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc -march=x86
1 ; PR1049
2 target datalayout = "e-p:32:32"
3 target endian = little
4 target pointersize = 32
5 target triple = "i686-pc-linux-gnu"
6 %struct.QBasicAtomic = type { int }
7 %struct.QByteArray = type { "struct.QByteArray::Data"* }
8 "struct.QByteArray::Data" = type { %struct.QBasicAtomic, int, int, sbyte*, [1 x sbyte] }
9 %struct.QFactoryLoader = type { %struct.QObject }
10 %struct.QImageIOHandler = type { int (...)**, %struct.QImageIOHandlerPrivate* }
11 %struct.QImageIOHandlerPrivate = type opaque
12 %struct.QImageWriter = type { %struct.QImageWriterPrivate* }
13 %struct.QImageWriterPrivate = type { %struct.QByteArray, %struct.QFactoryLoader*, bool, %struct.QImageIOHandler*, int, float, %struct.QString, %struct.QString, uint, %struct.QString, %struct.QImageWriter* }
14 "struct.QList" = type { "struct.QList::._20" }
15 "struct.QList::._20" = type { %struct.QListData }
16 %struct.QListData = type { "struct.QListData::Data"* }
17 "struct.QListData::Data" = type { %struct.QBasicAtomic, int, int, int, ubyte, [1 x sbyte*] }
18 %struct.QObject = type { int (...)**, %struct.QObjectData* }
19 %struct.QObjectData = type { int (...)**, %struct.QObject*, %struct.QObject*, "struct.QList", ubyte, [3 x ubyte], int, int }
20 %struct.QString = type { "struct.QString::Data"* }
21 "struct.QString::Data" = type { %struct.QBasicAtomic, int, int, ushort*, ubyte, ubyte, [1 x ushort] }
22
23 implementation ; Functions:
24
25 bool %_ZNK12QImageWriter8canWriteEv() {
26 %tmp62 = load %struct.QImageWriterPrivate** null ; <%struct.QImageWriterPrivate*> [#uses=1]
27 %tmp = getelementptr %struct.QImageWriterPrivate* %tmp62, int 0, uint 9 ; <%struct.QString*> [#uses=1]
28 %tmp75 = call %struct.QString* %_ZN7QStringaSERKS_( %struct.QString* %tmp, %struct.QString* null ) ; <%struct.QString*> [#uses=0]
29 call void asm sideeffect "lock\0Adecl $0\0Asetne 1", "==m"( int* null )
30 ret bool false
31 }
32
33 declare %struct.QString* %_ZN7QStringaSERKS_(%struct.QString*, %struct.QString*)