Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

CHECK-LABEL-ify some code gen tests to improve diagnostic experience …

…when tests fail.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188447 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information...
commit 93ab6bf534fb6c26563c00f28a8fc5581bb71dfd 1 parent 233fbe1
@stephenwlin stephenwlin authored
Showing with 1,849 additions and 1,849 deletions.
  1. +1 −1  test/CodeGen/2004-11-27-StaticFunctionRedeclare.c
  2. +6 −6 test/CodeGen/2008-03-05-syncPtr.c
  3. +3 −3 test/CodeGen/2008-07-30-implicit-initialization.c
  4. +3 −3 test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c
  5. +25 −25 test/CodeGen/3dnow-builtins.c
  6. +2 −2 test/CodeGen/Atomics.c
  7. +1 −1  test/CodeGen/_Bool-conversion.c
  8. +12 −12 test/CodeGen/aarch64-arguments.c
  9. +7 −7 test/CodeGen/aarch64-varargs.c
  10. +4 −4 test/CodeGen/address-space.c
  11. +1 −1  test/CodeGen/alias.c
  12. +2 −2 test/CodeGen/align-param.c
  13. +2 −2 test/CodeGen/annotations-var.c
  14. +1 −1  test/CodeGen/arm-aapcs-vfp.c
  15. +59 −59 test/CodeGen/arm-arguments.c
  16. +4 −4 test/CodeGen/arm-cc.c
  17. +1 −1  test/CodeGen/arm-pcs.c
  18. +4 −4 test/CodeGen/arm-pnaclcall.c
  19. +2 −2 test/CodeGen/assign.c
  20. +5 −5 test/CodeGen/atomics-inlining.c
  21. +6 −6 test/CodeGen/attr-availability.c
  22. +2 −2 test/CodeGen/attr-weakref.c
  23. +1 −1  test/CodeGen/available-externally-suppress.c
  24. +8 −8 test/CodeGen/bitfield-2.c
  25. +2 −2 test/CodeGen/block-byref-aggr.c
  26. +2 −2 test/CodeGen/blocks.c
  27. +1 −1  test/CodeGen/bool_test.c
  28. +5 −5 test/CodeGen/builtins-ppc-altivec.c
  29. +4 −4 test/CodeGen/builtins.c
  30. +3 −3 test/CodeGen/builtinshufflevector2.c
  31. +3 −3 test/CodeGen/byval-memcpy-elim.c
  32. +5 −5 test/CodeGen/c-strings.c
  33. +1 −1  test/CodeGen/c11atomics-ios.c
  34. +1 −1  test/CodeGen/c11atomics.c
  35. +1 −1  test/CodeGen/capture-complex-expr-in-block.c
  36. +1 −1  test/CodeGen/complex-convert.c
  37. +1 −1  test/CodeGen/complex-indirect.c
  38. +2 −2 test/CodeGen/complex-init-list.c
  39. +2 −2 test/CodeGen/compound-literal.c
  40. +1 −1  test/CodeGen/cxx-default-arg.cpp
  41. +2 −2 test/CodeGen/decl-in-prototype.c
  42. +2 −2 test/CodeGen/dllimport-dllexport.c
  43. +2 −2 test/CodeGen/exceptions.c
  44. +6 −6 test/CodeGen/exprs.c
  45. +1 −1  test/CodeGen/fast-math.c
  46. +1 −1  test/CodeGen/finite-math.c
  47. +1 −1  test/CodeGen/fp16-ops.c
  48. +3 −3 test/CodeGen/func-return-member.c
  49. +6 −6 test/CodeGen/function-attributes.c
  50. +3 −3 test/CodeGen/functions.c
  51. +1 −1  test/CodeGen/incomplete-function-type.c
  52. +43 −43 test/CodeGen/inline.c
  53. +22 −22 test/CodeGen/inline2.c
  54. +3 −3 test/CodeGen/integer-overflow.c
  55. +9 −9 test/CodeGen/le32-arguments.c
  56. +1 −1  test/CodeGen/le32-libcall-pow.c
  57. +6 −6 test/CodeGen/libcalls.c
  58. +2 −2 test/CodeGen/link-bitcode-file.c
  59. +1 −1  test/CodeGen/linkage-redecl.c
  60. +1 −1  test/CodeGen/long-double-x86-nacl.c
  61. +2 −2 test/CodeGen/microsoft-call-conv-x64.c
  62. +3 −3 test/CodeGen/microsoft-call-conv.c
  63. +2 −2 test/CodeGen/mips-byval-arg.c
  64. +3 −3 test/CodeGen/mips-vector-return.c
  65. +2 −2 test/CodeGen/mips64-class-return.cpp
  66. +4 −4 test/CodeGen/mips64-padding-arg.c
  67. +3 −3 test/CodeGen/ms-inline-asm.cpp
  68. +2 −2 test/CodeGen/no-opt-volatile-memcpy.c
  69. +16 −16 test/CodeGen/object-size.c
  70. +15 −15 test/CodeGen/packed-arrays.c
  71. +10 −10 test/CodeGen/packed-structure.c
  72. +2 −2 test/CodeGen/ppc64-struct-onefloat.c
  73. +1 −1  test/CodeGen/ppc64-struct-onevect.c
  74. +1 −1  test/CodeGen/pr12251.c
  75. +1 −1  test/CodeGen/pr9614.c
  76. +2 −2 test/CodeGen/pragma-visibility.c
  77. +13 −13 test/CodeGen/pragma-weak.c
  78. +1 −1  test/CodeGen/regparm.c
  79. +13 −13 test/CodeGen/sparcv9-abi.c
  80. +7 −7 test/CodeGen/sse-builtins.c
  81. +1 −1  test/CodeGen/static-order.c
  82. +15 −15 test/CodeGen/stdcall-fastcall.c
  83. +10 −10 test/CodeGen/switch.c
  84. +17 −17 test/CodeGen/systemz-inline-asm.c
  85. +1 −1  test/CodeGen/transparent-union.c
  86. +4 −4 test/CodeGen/trapv.c
  87. +10 −10 test/CodeGen/unsigned-overflow.c
  88. +12 −12 test/CodeGen/unsigned-promotion.c
  89. +18 −18 test/CodeGen/visibility.c
  90. +6 −6 test/CodeGen/vla.c
  91. +2 −2 test/CodeGen/volatile-1.c
  92. +2 −2 test/CodeGen/volatile-2.c
  93. +4 −4 test/CodeGen/volatile-complex.c
  94. +51 −51 test/CodeGen/x86_32-arguments-darwin.c
  95. +1 −1  test/CodeGen/x86_32-arguments-linux.c
  96. +2 −2 test/CodeGen/x86_32-arguments-nommx.c
  97. +1 −1  test/CodeGen/x86_32-arguments-realign.c
  98. +9 −9 test/CodeGen/x86_32-arguments-win32.c
  99. +6 −6 test/CodeGen/x86_32-fpcc-struct-return.c
  100. +15 −15 test/CodeGen/x86_64-arguments-nacl.c
  101. +36 −36 test/CodeGen/x86_64-arguments.c
  102. +2 −2 test/CodeGenCUDA/ptx-kernels.cu
  103. +1 −1  test/CodeGenCXX/DynArrayInit.cpp
  104. +4 −4 test/CodeGenCXX/abstract-class-ctors-dtors.cpp
  105. +2 −2 test/CodeGenCXX/address-of-fntemplate.cpp
  106. +3 −3 test/CodeGenCXX/alloca-align.cpp
  107. +4 −4 test/CodeGenCXX/anonymous-namespaces.cpp
  108. +6 −6 test/CodeGenCXX/anonymous-union-member-initializer.cpp
  109. +2 −2 test/CodeGenCXX/apple-kext-indirect-virtual-dtor-call.cpp
  110. +6 −6 test/CodeGenCXX/apple-kext-linkage.C
  111. +20 −20 test/CodeGenCXX/arm.cpp
  112. +1 −1  test/CodeGenCXX/atomic.cpp
  113. +3 −3 test/CodeGenCXX/atomicinit.cpp
  114. +1 −1  test/CodeGenCXX/attr.cpp
  115. +40 −40 test/CodeGenCXX/bitfield.cpp
  116. +4 −4 test/CodeGenCXX/block-byref-cxx-objc.cpp
  117. +10 −10 test/CodeGenCXX/block-in-ctor-dtor.cpp
  118. +1 −1  test/CodeGenCXX/blocks-cxx11.cpp
  119. +14 −14 test/CodeGenCXX/blocks.cpp
  120. +1 −1  test/CodeGenCXX/bool-bitfield.cpp
  121. +3 −3 test/CodeGenCXX/c-linkage.cpp
  122. +1 −1  test/CodeGenCXX/c99-variable-length-array.cpp
  123. +3 −3 test/CodeGenCXX/captured-statements.cpp
  124. +2 −2 test/CodeGenCXX/catch-undef-behavior.cpp
  125. +2 −2 test/CodeGenCXX/compound-literals.cpp
  126. +4 −4 test/CodeGenCXX/condition.cpp
  127. +4 −4 test/CodeGenCXX/conditional-gnu-ext.cpp
  128. +3 −3 test/CodeGenCXX/conditional-temporaries.cpp
  129. +1 −1  test/CodeGenCXX/constructor-attr.cpp
  130. +27 −27 test/CodeGenCXX/constructor-destructor-return-this.cpp
  131. +8 −8 test/CodeGenCXX/constructor-init.cpp
  132. +11 −11 test/CodeGenCXX/constructors.cpp
  133. +1 −1  test/CodeGenCXX/copy-assign-synthesis-2.cpp
  134. +2 −2 test/CodeGenCXX/copy-constructor-elim-2.cpp
  135. +3 −3 test/CodeGenCXX/copy-constructor-synthesis.cpp
  136. +1 −1  test/CodeGenCXX/copy-initialization.cpp
  137. +2 −2 test/CodeGenCXX/cxx-block-objects.cpp
  138. +1 −1  test/CodeGenCXX/cxx0x-delegating-ctors.cpp
  139. +6 −6 test/CodeGenCXX/cxx0x-initializer-array.cpp
  140. +4 −4 test/CodeGenCXX/cxx0x-initializer-constructors.cpp
  141. +3 −3 test/CodeGenCXX/cxx0x-initializer-stdinitializerlist-startend.cpp
  142. +20 −20 test/CodeGenCXX/cxx0x-initializer-stdinitializerlist.cpp
  143. +2 −2 test/CodeGenCXX/cxx11-thread-local-reference.cpp
  144. +6 −6 test/CodeGenCXX/cxx11-thread-local.cpp
  145. +2 −2 test/CodeGenCXX/debug-info-globalinit.cpp
  146. +3 −3 test/CodeGenCXX/default-arg-temps.cpp
  147. +4 −4 test/CodeGenCXX/default-arguments.cpp
  148. +2 −2 test/CodeGenCXX/deferred-global-init.cpp
  149. +3 −3 test/CodeGenCXX/delete-two-arg.cpp
  150. +8 −8 test/CodeGenCXX/delete.cpp
  151. +3 −3 test/CodeGenCXX/derived-to-base-conv.cpp
  152. +1 −1  test/CodeGenCXX/derived-to-virtual-base-class-calls-final.cpp
  153. +26 −26 test/CodeGenCXX/destructors.cpp
  154. +10 −10 test/CodeGenCXX/devirtualize-virtual-function-calls-final.cpp
  155. +1 −1  test/CodeGenCXX/devirtualize-virtual-function-calls.cpp
  156. +2 −2 test/CodeGenCXX/dynamic_cast-no-rtti.cpp
  157. +15 −15 test/CodeGenCXX/eh.cpp
  158. +1 −1  test/CodeGenCXX/empty-classes.cpp
  159. +6 −6 test/CodeGenCXX/exceptions.cpp
  160. +4 −4 test/CodeGenCXX/explicit-instantiation.cpp
  161. +2 −2 test/CodeGenCXX/fastcall.cpp
  162. +3 −3 test/CodeGenCXX/for-range.cpp
  163. +1 −1  test/CodeGenCXX/forward-enum.cpp
  164. +2 −2 test/CodeGenCXX/fp16-mangle.cpp
  165. +2 −2 test/CodeGenCXX/function-template-explicit-specialization.cpp
  166. +8 −8 test/CodeGenCXX/global-block-literal-helpers.cpp
  167. +1 −1  test/CodeGenCXX/global-dtor-no-atexit.cpp
  168. +1 −1  test/CodeGenCXX/global-init.cpp
  169. +1 −1  test/CodeGenCXX/goto.cpp
  170. +1 −1  test/CodeGenCXX/implicit-copy-assign-operator.cpp
  171. +1 −1  test/CodeGenCXX/implicit-copy-constructor.cpp
  172. +7 −7 test/CodeGenCXX/inheriting-constructor.cpp
  173. +1 −1  test/CodeGenCXX/init-invariant.cpp
  174. +5 −5 test/CodeGenCXX/inline-functions.cpp
  175. +2 −2 test/CodeGenCXX/instantiate-temporaries.cpp
  176. +14 −14 test/CodeGenCXX/lambda-expressions.cpp
  177. +17 −17 test/CodeGenCXX/linkage.cpp
  178. +3 −3 test/CodeGenCXX/lvalue-bitcasts.cpp
  179. +3 −3 test/CodeGenCXX/mangle-98.cpp
  180. +3 −3 test/CodeGenCXX/mangle-address-space.cpp
  181. +1 −1  test/CodeGenCXX/mangle-alias-template.cpp
  182. +11 −11 test/CodeGenCXX/mangle-exprs.cpp
  183. +1 −1  test/CodeGenCXX/mangle-extreme.cpp
  184. +35 −35 test/CodeGenCXX/mangle-lambdas.cpp
  185. +3 −3 test/CodeGenCXX/mangle-nullptr-arg.cpp
  186. +5 −5 test/CodeGenCXX/mangle-ref-qualifiers.cpp
  187. +6 −6 test/CodeGenCXX/mangle-subst-std.cpp
  188. +6 −6 test/CodeGenCXX/mangle-subst.cpp
  189. +2 −2 test/CodeGenCXX/mangle-system-header.cpp
  190. +5 −5 test/CodeGenCXX/mangle-template.cpp
  191. +2 −2 test/CodeGenCXX/mangle-unnamed.cpp
  192. +15 −15 test/CodeGenCXX/mangle-variadic-templates.cpp
  193. +84 −84 test/CodeGenCXX/mangle.cpp
  194. +1 −1  test/CodeGenCXX/member-expressions.cpp
  195. +2 −2 test/CodeGenCXX/member-function-pointer-calls.cpp
  196. +1 −1  test/CodeGenCXX/member-function-pointers.cpp
  197. +7 −7 test/CodeGenCXX/member-functions.cpp
  198. +1 −1  test/CodeGenCXX/member-init-anon-union.cpp
  199. +1 −1  test/CodeGenCXX/member-initializers.cpp
  200. +2 −2 test/CodeGenCXX/member-templates.cpp
  201. +6 −6 test/CodeGenCXX/microsoft-abi-default-cc.cpp
  202. +13 −13 test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp
  203. +8 −8 test/CodeGenCXX/microsoft-interface.cpp
  204. +2 −2 test/CodeGenCXX/new-array-init-exceptions.cpp
  205. +4 −4 test/CodeGenCXX/new-array-init.cpp
  206. +11 −11 test/CodeGenCXX/new.cpp
  207. +3 −3 test/CodeGenCXX/no-opt-volatile-memcpy.cpp
  208. +2 −2 test/CodeGenCXX/noexcept.cpp
  209. +9 −9 test/CodeGenCXX/nrvo.cpp
  210. +3 −3 test/CodeGenCXX/partial-destruction.cpp
  211. +18 −18 test/CodeGenCXX/pod-member-memcpys.cpp
  212. +3 −3 test/CodeGenCXX/pointers-to-data-members.cpp
  213. +1 −1  test/CodeGenCXX/pr11797.cpp
  214. +18 −18 test/CodeGenCXX/pr12251.cpp
  215. +6 −6 test/CodeGenCXX/pr13396.cpp
  216. +1 −1  test/CodeGenCXX/pr9130.cpp
  217. +1 −1  test/CodeGenCXX/pr9965.cpp
  218. +7 −7 test/CodeGenCXX/pragma-visibility.cpp
  219. +5 −5 test/CodeGenCXX/pragma-weak.cpp
  220. +10 −10 test/CodeGenCXX/reference-cast.cpp
  221. +8 −8 test/CodeGenCXX/references.cpp
  222. +1 −1  test/CodeGenCXX/rtti-layout.cpp
  223. +3 −3 test/CodeGenCXX/runtimecc.cpp
  224. +7 −7 test/CodeGenCXX/rvalue-references.cpp
  225. +8 −8 test/CodeGenCXX/skip-vtable-pointer-initialization.cpp
  226. +3 −3 test/CodeGenCXX/static-data-member.cpp
  227. +8 −8 test/CodeGenCXX/static-init.cpp
  228. +6 −6 test/CodeGenCXX/template-anonymous-types.cpp
  229. +1 −1  test/CodeGenCXX/template-dependent-bind-temporary.cpp
  230. +2 −2 test/CodeGenCXX/template-inner-struct-visibility-hidden.cpp
  231. +10 −10 test/CodeGenCXX/template-instantiation.cpp
  232. +6 −6 test/CodeGenCXX/template-linkage.cpp
  233. +12 −12 test/CodeGenCXX/temporaries.cpp
  234. +1 −1  test/CodeGenCXX/thiscall-struct-return.cpp
  235. +1 −1  test/CodeGenCXX/threadsafe-statics-exceptions.cpp
  236. +1 −1  test/CodeGenCXX/throw-expression-cleanup.cpp
  237. +2 −2 test/CodeGenCXX/throw-expressions.cpp
  238. +2 −2 test/CodeGenCXX/thunks-available-externally.cpp
  239. +10 −10 test/CodeGenCXX/thunks.cpp
  240. +18 −18 test/CodeGenCXX/type_visibility.cpp
  241. +1 −1  test/CodeGenCXX/typeid.cpp
  242. +10 −10 test/CodeGenCXX/value-init.cpp
  243. +1 −1  test/CodeGenCXX/vararg-non-pod.cpp
  244. +2 −2 test/CodeGenCXX/varargs.cpp
  245. +2 −2 test/CodeGenCXX/variadic-templates.cpp
  246. +1 −1  test/CodeGenCXX/virt-dtor-gen.cpp
  247. +6 −6 test/CodeGenCXX/virtual-bases.cpp
  248. +3 −3 test/CodeGenCXX/virtual-destructor-calls.cpp
  249. +1 −1  test/CodeGenCXX/virtual-functions-incomplete-types.cpp
  250. +3 −3 test/CodeGenCXX/visibility-hidden-extern-templates.cpp
  251. +19 −19 test/CodeGenCXX/visibility-inlines-hidden.cpp
  252. +6 −6 test/CodeGenCXX/visibility-ms-compat.cpp
  253. +113 −113 test/CodeGenCXX/visibility.cpp
  254. +1 −1  test/CodeGenCXX/vla.cpp
  255. +2 −2 test/CodeGenCXX/volatile.cpp
  256. +3 −3 test/CodeGenCXX/vtable-available-externally.cpp
  257. +5 −5 test/CodeGenCXX/vtable-pointer-initialization.cpp
  258. +15 −15 test/CodeGenCXX/x86_32-arguments.cpp
  259. +9 −9 test/CodeGenCXX/x86_64-arguments.cpp
  260. +2 −2 test/CodeGenObjC/arc-block-copy-escape.m
  261. +36 −36 test/CodeGenObjC/arc-blocks.m
  262. +4 −4 test/CodeGenObjC/arc-bridged-cast.m
  263. +2 −2 test/CodeGenObjC/arc-exceptions.m
  264. +5 −5 test/CodeGenObjC/arc-foreach.m
  265. +4 −4 test/CodeGenObjC/arc-literals.m
  266. +1 −1  test/CodeGenObjC/arc-loadweakretained-release.m
  267. +10 −10 test/CodeGenObjC/arc-no-arc-exceptions.m
  268. +4 −4 test/CodeGenObjC/arc-precise-lifetime.m
  269. +1 −1  test/CodeGenObjC/arc-property.m
  270. +1 −1  test/CodeGenObjC/arc-related-result-type.m
  271. +3 −3 test/CodeGenObjC/arc-ternary-op.m
  272. +1 −1  test/CodeGenObjC/arc-unopt.m
  273. +1 −1  test/CodeGenObjC/arc-unoptimized-byref-var.m
  274. +1 −1  test/CodeGenObjC/arc-with-atthrow.m
  275. +32 −32 test/CodeGenObjC/arc.m
  276. +1 −1  test/CodeGenObjC/assign.m
  277. +1 −1  test/CodeGenObjC/autorelease.m
  278. +2 −2 test/CodeGenObjC/bitfield-access.m
  279. +1 −1  test/CodeGenObjC/block-6.m
  280. +4 −4 test/CodeGenObjC/blocks.m
  281. +1 −1  test/CodeGenObjC/builtins.m
  282. +1 −1  test/CodeGenObjC/exceptions-nonfragile.m
  283. +4 −4 test/CodeGenObjC/exceptions.m
  284. +3 −3 test/CodeGenObjC/fp2ret.m
  285. +3 −3 test/CodeGenObjC/fpret.m
  286. +1 −1  test/CodeGenObjC/gc.m
  287. +2 −2 test/CodeGenObjC/ivar-invariant.m
  288. +2 −2 test/CodeGenObjC/ns_consume_null_check.m
  289. +4 −4 test/CodeGenObjC/objc2-legacy-dispatch.m
  290. +1 −1  test/CodeGenObjC/objfw.m
  291. +2 −2 test/CodeGenObjC/property.m
  292. +2 −2 test/CodeGenObjC/related-result-type.m
  293. +2 −2 test/CodeGenObjC/stret_lookup.m
  294. +3 −3 test/CodeGenObjC/synchronized.m
  295. +1 −1  test/CodeGenObjC/tentative-cfconstantstring.m
  296. +2 −2 test/CodeGenObjC/terminate.m
  297. +2 −2 test/CodeGenObjC/x86_64-struct-return-gc.m
  298. +2 −2 test/CodeGenObjCXX/arc-attrs.mm
  299. +1 −1  test/CodeGenObjCXX/arc-blocks.mm
  300. +5 −5 test/CodeGenObjCXX/arc-exceptions.mm
Sorry, we could not display the entire diff because too many files (331) changed.
View
2  test/CodeGen/2004-11-27-StaticFunctionRedeclare.c
@@ -6,7 +6,7 @@
// This is PR244
-// CHECK: define void @bar(
+// CHECK-LABEL: define void @bar(
// CHECK: call {{.*}} @func
// CHECK: define internal {{.*}}i32 @func(
static int func();
View
12 test/CodeGen/2008-03-05-syncPtr.c
@@ -3,38 +3,38 @@
int* foo(int** a, int* b, int* c) {
return __sync_val_compare_and_swap (a, b, c);
}
-// CHECK: define i32* @foo
+// CHECK-LABEL: define i32* @foo
// CHECK: cmpxchg
int foo2(int** a, int* b, int* c) {
return __sync_bool_compare_and_swap (a, b, c);
}
-// CHECK: define i32 @foo2
+// CHECK-LABEL: define i32 @foo2
// CHECK: cmpxchg
int* foo3(int** a, int b) {
return __sync_fetch_and_add (a, b);
}
-// CHECK: define i32* @foo3
+// CHECK-LABEL: define i32* @foo3
// CHECK: atomicrmw add
int* foo4(int** a, int b) {
return __sync_fetch_and_sub (a, b);
}
-// CHECK: define i32* @foo4
+// CHECK-LABEL: define i32* @foo4
// CHECK: atomicrmw sub
int* foo5(int** a, int* b) {
return __sync_lock_test_and_set (a, b);
}
-// CHECK: define i32* @foo5
+// CHECK-LABEL: define i32* @foo5
// CHECK: atomicrmw xchg
int* foo6(int** a, int*** b) {
return __sync_lock_test_and_set (a, b);
}
-// CHECK: define i32* @foo6
+// CHECK-LABEL: define i32* @foo6
// CHECK: atomicrmw xchg
View
6 test/CodeGen/2008-07-30-implicit-initialization.c
@@ -1,9 +1,9 @@
// RUN: %clang_cc1 -triple i386-unknown-unknown -O1 -emit-llvm -o - %s | FileCheck %s
-// CHECK: define i32 @f0()
+// CHECK-LABEL: define i32 @f0()
// CHECK: ret i32 0
-// CHECK: define i32 @f1()
+// CHECK-LABEL: define i32 @f1()
// CHECK: ret i32 0
-// CHECK: define i32 @f2()
+// CHECK-LABEL: define i32 @f2()
// CHECK: ret i32 0
// <rdar://problem/6113085>
View
6 test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c
@@ -1,9 +1,9 @@
// RUN: %clang_cc1 -triple i386-unknown-unknown -O1 -emit-llvm -o - %s | FileCheck %s
-// CHECK: define i32 @f0
+// CHECK-LABEL: define i32 @f0
// CHECK: ret i32 1
-// CHECK: define i32 @f1
+// CHECK-LABEL: define i32 @f1
// CHECK: ret i32 1
-// CHECK: define i32 @f2
+// CHECK-LABEL: define i32 @f2
// CHECK: ret i32 1
// <rdr://6115726>
View
50 test/CodeGen/3dnow-builtins.c
@@ -6,151 +6,151 @@
#include <x86intrin.h>
__m64 test_m_pavgusb(__m64 m1, __m64 m2) {
- // CHECK: define i64 @test_m_pavgusb
+ // CHECK-LABEL: define i64 @test_m_pavgusb
// CHECK: @llvm.x86.3dnow.pavgusb
return _m_pavgusb(m1, m2);
}
__m64 test_m_pf2id(__m64 m) {
- // CHECK: define i64 @test_m_pf2id
+ // CHECK-LABEL: define i64 @test_m_pf2id
// CHECK: @llvm.x86.3dnow.pf2id
return _m_pf2id(m);
}
__m64 test_m_pfacc(__m64 m1, __m64 m2) {
- // CHECK: define i64 @test_m_pfacc
+ // CHECK-LABEL: define i64 @test_m_pfacc
// CHECK: @llvm.x86.3dnow.pfacc
return _m_pfacc(m1, m2);
}
__m64 test_m_pfadd(__m64 m1, __m64 m2) {
- // CHECK: define i64 @test_m_pfadd
+ // CHECK-LABEL: define i64 @test_m_pfadd
// CHECK: @llvm.x86.3dnow.pfadd
return _m_pfadd(m1, m2);
}
__m64 test_m_pfcmpeq(__m64 m1, __m64 m2) {
- // CHECK: define i64 @test_m_pfcmpeq
+ // CHECK-LABEL: define i64 @test_m_pfcmpeq
// CHECK: @llvm.x86.3dnow.pfcmpeq
return _m_pfcmpeq(m1, m2);
}
__m64 test_m_pfcmpge(__m64 m1, __m64 m2) {
- // CHECK: define i64 @test_m_pfcmpge
+ // CHECK-LABEL: define i64 @test_m_pfcmpge
// CHECK: @llvm.x86.3dnow.pfcmpge
return _m_pfcmpge(m1, m2);
}
__m64 test_m_pfcmpgt(__m64 m1, __m64 m2) {
- // CHECK: define i64 @test_m_pfcmpgt
+ // CHECK-LABEL: define i64 @test_m_pfcmpgt
// CHECK: @llvm.x86.3dnow.pfcmpgt
return _m_pfcmpgt(m1, m2);
}
__m64 test_m_pfmax(__m64 m1, __m64 m2) {
- // CHECK: define i64 @test_m_pfmax
+ // CHECK-LABEL: define i64 @test_m_pfmax
// CHECK: @llvm.x86.3dnow.pfmax
return _m_pfmax(m1, m2);
}
__m64 test_m_pfmin(__m64 m1, __m64 m2) {
- // CHECK: define i64 @test_m_pfmin
+ // CHECK-LABEL: define i64 @test_m_pfmin
// CHECK: @llvm.x86.3dnow.pfmin
return _m_pfmin(m1, m2);
}
__m64 test_m_pfmul(__m64 m1, __m64 m2) {
- // CHECK: define i64 @test_m_pfmul
+ // CHECK-LABEL: define i64 @test_m_pfmul
// CHECK: @llvm.x86.3dnow.pfmul
return _m_pfmul(m1, m2);
}
__m64 test_m_pfrcp(__m64 m) {
- // CHECK: define i64 @test_m_pfrcp
+ // CHECK-LABEL: define i64 @test_m_pfrcp
// CHECK: @llvm.x86.3dnow.pfrcp
return _m_pfrcp(m);
}
__m64 test_m_pfrcpit1(__m64 m1, __m64 m2) {
- // CHECK: define i64 @test_m_pfrcpit1
+ // CHECK-LABEL: define i64 @test_m_pfrcpit1
// CHECK: @llvm.x86.3dnow.pfrcpit1
return _m_pfrcpit1(m1, m2);
}
__m64 test_m_pfrcpit2(__m64 m1, __m64 m2) {
- // CHECK: define i64 @test_m_pfrcpit2
+ // CHECK-LABEL: define i64 @test_m_pfrcpit2
// CHECK: @llvm.x86.3dnow.pfrcpit2
return _m_pfrcpit2(m1, m2);
}
__m64 test_m_pfrsqrt(__m64 m) {
- // CHECK: define i64 @test_m_pfrsqrt
+ // CHECK-LABEL: define i64 @test_m_pfrsqrt
// CHECK: @llvm.x86.3dnow.pfrsqrt
return _m_pfrsqrt(m);
}
__m64 test_m_pfrsqrtit1(__m64 m1, __m64 m2) {
- // CHECK: define i64 @test_m_pfrsqrtit1
+ // CHECK-LABEL: define i64 @test_m_pfrsqrtit1
// CHECK: @llvm.x86.3dnow.pfrsqit1
return _m_pfrsqrtit1(m1, m2);
}
__m64 test_m_pfsub(__m64 m1, __m64 m2) {
- // CHECK: define i64 @test_m_pfsub
+ // CHECK-LABEL: define i64 @test_m_pfsub
// CHECK: @llvm.x86.3dnow.pfsub
return _m_pfsub(m1, m2);
}
__m64 test_m_pfsubr(__m64 m1, __m64 m2) {
- // CHECK: define i64 @test_m_pfsubr
+ // CHECK-LABEL: define i64 @test_m_pfsubr
// CHECK: @llvm.x86.3dnow.pfsubr
return _m_pfsubr(m1, m2);
}
__m64 test_m_pi2fd(__m64 m) {
- // CHECK: define i64 @test_m_pi2fd
+ // CHECK-LABEL: define i64 @test_m_pi2fd
// CHECK: @llvm.x86.3dnow.pi2fd
return _m_pi2fd(m);
}
__m64 test_m_pmulhrw(__m64 m1, __m64 m2) {
- // CHECK: define i64 @test_m_pmulhrw
+ // CHECK-LABEL: define i64 @test_m_pmulhrw
// CHECK: @llvm.x86.3dnow.pmulhrw
return _m_pmulhrw(m1, m2);
}
__m64 test_m_pf2iw(__m64 m) {
- // CHECK: define i64 @test_m_pf2iw
+ // CHECK-LABEL: define i64 @test_m_pf2iw
// CHECK: @llvm.x86.3dnowa.pf2iw
return _m_pf2iw(m);
}
__m64 test_m_pfnacc(__m64 m1, __m64 m2) {
- // CHECK: define i64 @test_m_pfnacc
+ // CHECK-LABEL: define i64 @test_m_pfnacc
// CHECK: @llvm.x86.3dnowa.pfnacc
return _m_pfnacc(m1, m2);
}
__m64 test_m_pfpnacc(__m64 m1, __m64 m2) {
- // CHECK: define i64 @test_m_pfpnacc
+ // CHECK-LABEL: define i64 @test_m_pfpnacc
// CHECK: @llvm.x86.3dnowa.pfpnacc
return _m_pfpnacc(m1, m2);
}
__m64 test_m_pi2fw(__m64 m) {
- // CHECK: define i64 @test_m_pi2fw
+ // CHECK-LABEL: define i64 @test_m_pi2fw
// CHECK: @llvm.x86.3dnowa.pi2fw
return _m_pi2fw(m);
}
__m64 test_m_pswapdsf(__m64 m) {
- // CHECK: define i64 @test_m_pswapdsf
+ // CHECK-LABEL: define i64 @test_m_pswapdsf
// CHECK: @llvm.x86.3dnowa.pswapd
return _m_pswapdsf(m);
}
__m64 test_m_pswapdsi(__m64 m) {
- // CHECK: define i64 @test_m_pswapdsi
+ // CHECK-LABEL: define i64 @test_m_pswapdsi
// CHECK: @llvm.x86.3dnowa.pswapd
return _m_pswapdsi(m);
}
View
4 test/CodeGen/Atomics.c
@@ -11,7 +11,7 @@ unsigned int ui;
signed long long sll;
unsigned long long ull;
-void test_op_ignore (void) // CHECK: define void @test_op_ignore
+void test_op_ignore (void) // CHECK-LABEL: define void @test_op_ignore
{
(void) __sync_fetch_and_add (&sc, 1); // CHECK: atomicrmw add i8
(void) __sync_fetch_and_add (&uc, 1); // CHECK: atomicrmw add i8
@@ -60,7 +60,7 @@ void test_op_ignore (void) // CHECK: define void @test_op_ignore
}
-void test_fetch_and_op (void) // CHECK: define void @test_fetch_and_op
+void test_fetch_and_op (void) // CHECK-LABEL: define void @test_fetch_and_op
{
sc = __sync_fetch_and_add (&sc, 11); // CHECK: atomicrmw add
uc = __sync_fetch_and_add (&uc, 11); // CHECK: atomicrmw add
View
2  test/CodeGen/_Bool-conversion.c
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -triple i386 -emit-llvm -O2 -o - %s | FileCheck %s
-// CHECK: define i32 @f0()
+// CHECK-LABEL: define i32 @f0()
// CHECK: ret i32 1
// CHECK: }
View
24 test/CodeGen/aarch64-arguments.c
@@ -3,7 +3,7 @@
// Sign extension is performed by the callee on AArch64, which means
// that we *shouldn't* tag arguments and returns with their extension.
-// PCS: define i8 @f0(i16 %a)
+// PCS-LABEL: define i8 @f0(i16 %a)
char f0(short a) {
return a;
}
@@ -32,11 +32,11 @@ struct s5 f5(void) {}
struct s6 { int f0[1]; };
struct s6 f6(void) {}
-// PCS: define void @f7()
+// PCS-LABEL: define void @f7()
struct s7 { struct { int : 0; } f0; };
struct s7 f7(void) {}
-// PCS: define void @f8()
+// PCS-LABEL: define void @f8()
struct s8 { struct { int : 0; } f0[1]; };
struct s8 f8(void) {}
@@ -56,18 +56,18 @@ struct s11 f11(void) {}
union u12 { char f0; short f1; int f2; long f3; };
union u12 f12(void) {}
-// PCS: define %struct.s13 @f13()
+// PCS-LABEL: define %struct.s13 @f13()
struct s13 { float f0; };
struct s13 f13(void) {}
-// PCS: define %union.u14 @f14()
+// PCS-LABEL: define %union.u14 @f14()
union u14 { float f0; };
union u14 f14(void) {}
-// PCS: define void @f15()
+// PCS-LABEL: define void @f15()
void f15(struct s7 a0) {}
-// PCS: define void @f16()
+// PCS-LABEL: define void @f16()
void f16(struct s8 a0) {}
// PCS: define [1 x i64] @f17()
@@ -111,14 +111,14 @@ struct s26 f26() {}
struct s27 { _Complex long f0; };
struct s27 f27() {}
-// PCS: define void @f28(i8 %a, i16 %b, i32 %c, i64 %d, float %e, double %f)
+// PCS-LABEL: define void @f28(i8 %a, i16 %b, i32 %c, i64 %d, float %e, double %f)
void f28(char a, short b, int c, long d, float e, double f) {}
// PCS: define void @f29([2 x i64] %a
struct s29 { int arr[4]; };
void f29(struct s29 a) {}
-// PCS: define void @f30(%struct.s30* %a)
+// PCS-LABEL: define void @f30(%struct.s30* %a)
struct s30 { int arr[4]; char c;};
void f30(struct s30 a) {}
@@ -126,7 +126,7 @@ void f30(struct s30 a) {}
struct s31 { double arr[4]; };
void f31(struct s31 a) {}
-// PCS: define void @f32(%struct.s32* %a)
+// PCS-LABEL: define void @f32(%struct.s32* %a)
struct s32 { float arr[5]; };
void f32(struct s32 a) {}
@@ -135,11 +135,11 @@ void f32(struct s32 a) {}
struct s33 { float arr[3]; float a; };
void f33(struct s33 a) {}
-// PCS: define void @f34(%struct.s34* noalias sret
+// PCS-LABEL: define void @f34(%struct.s34* noalias sret
struct s34 { int a[4]; char b };
struct s34 f34(void) {}
-// PCS: define void @f35()
+// PCS-LABEL: define void @f35()
struct s35 {};
void f35(struct s35 a) {}
View
14 test/CodeGen/aarch64-varargs.c
@@ -7,7 +7,7 @@
va_list the_list;
int simple_int(void) {
-// CHECK: define i32 @simple_int
+// CHECK-LABEL: define i32 @simple_int
return va_arg(the_list, int);
// CHECK: [[GR_OFFS:%[a-z_0-9]+]] = load i32* getelementptr inbounds (%struct.__va_list* @the_list, i32 0, i32 3)
// CHECK: [[EARLY_ONSTACK:%[a-z_0-9]+]] = icmp sge i32 [[GR_OFFS]], 0
@@ -39,7 +39,7 @@ int simple_int(void) {
}
__int128 aligned_int(void) {
-// CHECK: define i128 @aligned_int
+// CHECK-LABEL: define i128 @aligned_int
return va_arg(the_list, __int128);
// CHECK: [[GR_OFFS:%[a-z_0-9]+]] = load i32* getelementptr inbounds (%struct.__va_list* @the_list, i32 0, i32 3)
// CHECK: [[EARLY_ONSTACK:%[a-z_0-9]+]] = icmp sge i32 [[GR_OFFS]], 0
@@ -81,7 +81,7 @@ struct bigstruct {
};
struct bigstruct simple_indirect(void) {
-// CHECK: define void @simple_indirect
+// CHECK-LABEL: define void @simple_indirect
return va_arg(the_list, struct bigstruct);
// CHECK: [[GR_OFFS:%[a-z_0-9]+]] = load i32* getelementptr inbounds (%struct.__va_list* @the_list, i32 0, i32 3)
// CHECK: [[EARLY_ONSTACK:%[a-z_0-9]+]] = icmp sge i32 [[GR_OFFS]], 0
@@ -119,7 +119,7 @@ struct aligned_bigstruct {
};
struct aligned_bigstruct simple_aligned_indirect(void) {
-// CHECK: define void @simple_aligned_indirect
+// CHECK-LABEL: define void @simple_aligned_indirect
return va_arg(the_list, struct aligned_bigstruct);
// CHECK: [[GR_OFFS:%[a-z_0-9]+]] = load i32* getelementptr inbounds (%struct.__va_list* @the_list, i32 0, i32 3)
// CHECK: [[EARLY_ONSTACK:%[a-z_0-9]+]] = icmp sge i32 [[GR_OFFS]], 0
@@ -150,7 +150,7 @@ struct aligned_bigstruct simple_aligned_indirect(void) {
}
double simple_double(void) {
-// CHECK: define double @simple_double
+// CHECK-LABEL: define double @simple_double
return va_arg(the_list, double);
// CHECK: [[VR_OFFS:%[a-z_0-9]+]] = load i32* getelementptr inbounds (%struct.__va_list* @the_list, i32 0, i32 4)
// CHECK: [[EARLY_ONSTACK:%[a-z_0-9]+]] = icmp sge i32 [[VR_OFFS]], 0
@@ -186,7 +186,7 @@ struct hfa {
};
struct hfa simple_hfa(void) {
-// CHECK: define %struct.hfa @simple_hfa
+// CHECK-LABEL: define %struct.hfa @simple_hfa
return va_arg(the_list, struct hfa);
// CHECK: [[VR_OFFS:%[a-z_0-9]+]] = load i32* getelementptr inbounds (%struct.__va_list* @the_list, i32 0, i32 4)
// CHECK: [[EARLY_ONSTACK:%[a-z_0-9]+]] = icmp sge i32 [[VR_OFFS]], 0
@@ -226,7 +226,7 @@ struct hfa simple_hfa(void) {
}
void check_start(int n, ...) {
-// CHECK: define void @check_start(i32 %n, ...)
+// CHECK-LABEL: define void @check_start(i32 %n, ...)
va_list the_list;
va_start(the_list, n);
View
8 test/CodeGen/address-space.c
@@ -9,11 +9,11 @@ int foo __attribute__((address_space(1)));
// CHECK: @ban = common addrspace(1) global
int ban[10] __attribute__((address_space(1)));
-// CHECK: define i32 @test1()
+// CHECK-LABEL: define i32 @test1()
// CHECK: load i32 addrspace(1)* @foo
int test1() { return foo; }
-// CHECK: define i32 @test2(i32 %i)
+// CHECK-LABEL: define i32 @test2(i32 %i)
// CHECK: load i32 addrspace(1)*
// CHECK-NEXT: ret i32
int test2(int i) { return ban[i]; }
@@ -21,7 +21,7 @@ int test2(int i) { return ban[i]; }
// Both A and B point into addrspace(2).
__attribute__((address_space(2))) int *A, *B;
-// CHECK: define void @test3()
+// CHECK-LABEL: define void @test3()
// CHECK: load i32 addrspace(2)** @B
// CHECK: load i32 addrspace(2)*
// CHECK: load i32 addrspace(2)** @A
@@ -35,7 +35,7 @@ typedef struct {
float aData[1];
} MyStruct;
-// CHECK: define void @test4(
+// CHECK-LABEL: define void @test4(
// CHECK: call void @llvm.memcpy.p0i8.p2i8
// CHECK: call void @llvm.memcpy.p2i8.p0i8
void test4(MyStruct __attribute__((address_space(2))) *pPtr) {
View
2  test/CodeGen/alias.c
@@ -19,7 +19,7 @@ extern void f1(void) __attribute((alias("f0")));
// Make sure that aliases cause referenced values to be emitted.
// PR3200
static inline int foo1() { return 0; }
-// CHECKBASIC: define internal i32 @foo1()
+// CHECKBASIC-LABEL: define internal i32 @foo1()
int foo() __attribute__((alias("foo1")));
int bar() __attribute__((alias("bar1")));
View
4 test/CodeGen/align-param.c
@@ -5,7 +5,7 @@
int test (long long x) {
return (int)x;
}
-// CHECK: define i32 @test
+// CHECK-LABEL: define i32 @test
// CHECK: alloca i64, align 8
@@ -14,5 +14,5 @@ struct X { int x,y,z,a; };
int test2(struct X x __attribute((aligned(16)))) {
return x.z;
}
-// CHECK: define i32 @test2
+// CHECK-LABEL: define i32 @test2
// CHECK: alloca %struct.X, align 16
View
4 test/CodeGen/annotations-var.c
@@ -31,7 +31,7 @@ int foo(int v __attribute__((annotate("param_ann_0"))) __attribute__((annotate("
void local(void) {
int localvar __attribute__((annotate("localvar_ann_0"))) __attribute__((annotate("localvar_ann_1"))) = 3;
-// LOCAL: define void @local()
+// LOCAL-LABEL: define void @local()
// LOCAL: [[LOCALVAR:%.*]] = alloca i32,
// LOCAL-NEXT: [[T0:%.*]] = bitcast i32* [[LOCALVAR]] to i8*
// LOCAL-NEXT: call void @llvm.var.annotation(i8* [[T0]], i8* getelementptr inbounds ([15 x i8]* @{{.*}}), i8* getelementptr inbounds ({{.*}}), i32 33)
@@ -41,7 +41,7 @@ void local(void) {
void undef(void) {
int undefvar __attribute__((annotate("undefvar_ann_0")));
-// UNDEF: define void @undef()
+// UNDEF-LABEL: define void @undef()
// UNDEF: [[UNDEFVAR:%.*]] = alloca i32,
// UNDEF-NEXT: [[T0:%.*]] = bitcast i32* [[UNDEFVAR]] to i8*
// UNDEF-NEXT: call void @llvm.var.annotation(i8* [[T0]], i8* getelementptr inbounds ([15 x i8]* @{{.*}}), i8* getelementptr inbounds ({{.*}}), i32 43)
View
2  test/CodeGen/arm-aapcs-vfp.c
@@ -95,6 +95,6 @@ void test_neon(struct neon_struct arg) {
neon_callee(arg);
}
-// CHECK: define arm_aapcs_vfpcc void @f33(%struct.s33* byval %s)
+// CHECK-LABEL: define arm_aapcs_vfpcc void @f33(%struct.s33* byval %s)
struct s33 { char buf[32*32]; };
void f33(struct s33 s) { }
View
118 test/CodeGen/arm-arguments.c
@@ -2,77 +2,77 @@
// RUN: %clang_cc1 -triple armv7-apple-darwin9 -target-abi apcs-gnu -emit-llvm -w -o - %s | FileCheck -check-prefix=APCS-GNU %s
// RUN: %clang_cc1 -triple armv7-apple-darwin9 -target-abi aapcs -emit-llvm -w -o - %s | FileCheck -check-prefix=AAPCS %s
-// APCS-GNU: define signext i8 @f0()
-// AAPCS: define arm_aapcscc signext i8 @f0()
+// APCS-GNU-LABEL: define signext i8 @f0()
+// AAPCS-LABEL: define arm_aapcscc signext i8 @f0()
char f0(void) {
return 0;
}
-// APCS-GNU: define i8 @f1()
-// AAPCS: define arm_aapcscc i8 @f1()
+// APCS-GNU-LABEL: define i8 @f1()
+// AAPCS-LABEL: define arm_aapcscc i8 @f1()
struct s1 { char f0; };
struct s1 f1(void) {}
-// APCS-GNU: define i16 @f2()
-// AAPCS: define arm_aapcscc i16 @f2()
+// APCS-GNU-LABEL: define i16 @f2()
+// AAPCS-LABEL: define arm_aapcscc i16 @f2()
struct s2 { short f0; };
struct s2 f2(void) {}
-// APCS-GNU: define i32 @f3()
-// AAPCS: define arm_aapcscc i32 @f3()
+// APCS-GNU-LABEL: define i32 @f3()
+// AAPCS-LABEL: define arm_aapcscc i32 @f3()
struct s3 { int f0; };
struct s3 f3(void) {}
-// APCS-GNU: define i32 @f4()
-// AAPCS: define arm_aapcscc i32 @f4()
+// APCS-GNU-LABEL: define i32 @f4()
+// AAPCS-LABEL: define arm_aapcscc i32 @f4()
struct s4 { struct s4_0 { int f0; } f0; };
struct s4 f4(void) {}
-// APCS-GNU: define void @f5(
+// APCS-GNU-LABEL: define void @f5(
// APCS-GNU: struct.s5* noalias sret
-// AAPCS: define arm_aapcscc i32 @f5()
+// AAPCS-LABEL: define arm_aapcscc i32 @f5()
struct s5 { struct { } f0; int f1; };
struct s5 f5(void) {}
-// APCS-GNU: define void @f6(
+// APCS-GNU-LABEL: define void @f6(
// APCS-GNU: struct.s6* noalias sret
-// AAPCS: define arm_aapcscc i32 @f6()
+// AAPCS-LABEL: define arm_aapcscc i32 @f6()
struct s6 { int f0[1]; };
struct s6 f6(void) {}
-// APCS-GNU: define void @f7()
-// AAPCS: define arm_aapcscc void @f7()
+// APCS-GNU-LABEL: define void @f7()
+// AAPCS-LABEL: define arm_aapcscc void @f7()
struct s7 { struct { int : 0; } f0; };
struct s7 f7(void) {}
-// APCS-GNU: define void @f8(
+// APCS-GNU-LABEL: define void @f8(
// APCS-GNU: struct.s8* noalias sret
-// AAPCS: define arm_aapcscc void @f8()
+// AAPCS-LABEL: define arm_aapcscc void @f8()
struct s8 { struct { int : 0; } f0[1]; };
struct s8 f8(void) {}
-// APCS-GNU: define i32 @f9()
-// AAPCS: define arm_aapcscc i32 @f9()
+// APCS-GNU-LABEL: define i32 @f9()
+// AAPCS-LABEL: define arm_aapcscc i32 @f9()
struct s9 { int f0; int : 0; };
struct s9 f9(void) {}
-// APCS-GNU: define i32 @f10()
-// AAPCS: define arm_aapcscc i32 @f10()
+// APCS-GNU-LABEL: define i32 @f10()
+// AAPCS-LABEL: define arm_aapcscc i32 @f10()
struct s10 { int f0; int : 0; int : 0; };
struct s10 f10(void) {}
-// APCS-GNU: define void @f11(
+// APCS-GNU-LABEL: define void @f11(
// APCS-GNU: struct.s11* noalias sret
-// AAPCS: define arm_aapcscc i32 @f11()
+// AAPCS-LABEL: define arm_aapcscc i32 @f11()
struct s11 { int : 0; int f0; };
struct s11 f11(void) {}
-// APCS-GNU: define i32 @f12()
-// AAPCS: define arm_aapcscc i32 @f12()
+// APCS-GNU-LABEL: define i32 @f12()
+// AAPCS-LABEL: define arm_aapcscc i32 @f12()
union u12 { char f0; short f1; int f2; };
union u12 f12(void) {}
-// APCS-GNU: define void @f13(
+// APCS-GNU-LABEL: define void @f13(
// APCS-GNU: struct.s13* noalias sret
// FIXME: This should return a float.
@@ -80,55 +80,55 @@ union u12 f12(void) {}
struct s13 { float f0; };
struct s13 f13(void) {}
-// APCS-GNU: define void @f14(
+// APCS-GNU-LABEL: define void @f14(
// APCS-GNU: union.u14* noalias sret
-// AAPCS: define arm_aapcscc i32 @f14()
+// AAPCS-LABEL: define arm_aapcscc i32 @f14()
union u14 { float f0; };
union u14 f14(void) {}
-// APCS-GNU: define void @f15()
-// AAPCS: define arm_aapcscc void @f15()
+// APCS-GNU-LABEL: define void @f15()
+// AAPCS-LABEL: define arm_aapcscc void @f15()
void f15(struct s7 a0) {}
-// APCS-GNU: define void @f16()
-// AAPCS: define arm_aapcscc void @f16()
+// APCS-GNU-LABEL: define void @f16()
+// AAPCS-LABEL: define arm_aapcscc void @f16()
void f16(struct s8 a0) {}
-// APCS-GNU: define i32 @f17()
-// AAPCS: define arm_aapcscc i32 @f17()
+// APCS-GNU-LABEL: define i32 @f17()
+// AAPCS-LABEL: define arm_aapcscc i32 @f17()
struct s17 { short f0 : 13; char f1 : 4; };
struct s17 f17(void) {}
-// APCS-GNU: define i32 @f18()
-// AAPCS: define arm_aapcscc i32 @f18()
+// APCS-GNU-LABEL: define i32 @f18()
+// AAPCS-LABEL: define arm_aapcscc i32 @f18()
struct s18 { short f0; char f1 : 4; };
struct s18 f18(void) {}
-// APCS-GNU: define void @f19(
+// APCS-GNU-LABEL: define void @f19(
// APCS-GNU: struct.s19* noalias sret
-// AAPCS: define arm_aapcscc i32 @f19()
+// AAPCS-LABEL: define arm_aapcscc i32 @f19()
struct s19 { int f0; struct s8 f1; };
struct s19 f19(void) {}
-// APCS-GNU: define void @f20(
+// APCS-GNU-LABEL: define void @f20(
// APCS-GNU: struct.s20* noalias sret
-// AAPCS: define arm_aapcscc i32 @f20()
+// AAPCS-LABEL: define arm_aapcscc i32 @f20()
struct s20 { struct s8 f1; int f0; };
struct s20 f20(void) {}
-// APCS-GNU: define i8 @f21()
-// AAPCS: define arm_aapcscc i32 @f21()
+// APCS-GNU-LABEL: define i8 @f21()
+// AAPCS-LABEL: define arm_aapcscc i32 @f21()
struct s21 { struct {} f1; int f0 : 4; };
struct s21 f21(void) {}
-// APCS-GNU: define i16 @f22()
-// APCS-GNU: define i32 @f23()
-// APCS-GNU: define i64 @f24()
-// APCS-GNU: define i128 @f25()
-// APCS-GNU: define i64 @f26()
-// APCS-GNU: define i128 @f27()
-// AAPCS: define arm_aapcscc i16 @f22()
-// AAPCS: define arm_aapcscc i32 @f23()
+// APCS-GNU-LABEL: define i16 @f22()
+// APCS-GNU-LABEL: define i32 @f23()
+// APCS-GNU-LABEL: define i64 @f24()
+// APCS-GNU-LABEL: define i128 @f25()
+// APCS-GNU-LABEL: define i64 @f26()
+// APCS-GNU-LABEL: define i128 @f27()
+// AAPCS-LABEL: define arm_aapcscc i16 @f22()
+// AAPCS-LABEL: define arm_aapcscc i32 @f23()
// AAPCS: define arm_aapcscc void @f24({{.*}} noalias sret
// AAPCS: define arm_aapcscc void @f25({{.*}} noalias sret
// AAPCS: define arm_aapcscc void @f26({{.*}} noalias sret
@@ -140,13 +140,13 @@ _Complex long long f25(void) {}
_Complex float f26(void) {}
_Complex double f27(void) {}
-// APCS-GNU: define i16 @f28()
-// AAPCS: define arm_aapcscc i16 @f28()
+// APCS-GNU-LABEL: define i16 @f28()
+// AAPCS-LABEL: define arm_aapcscc i16 @f28()
struct s28 { _Complex char f0; };
struct s28 f28() {}
-// APCS-GNU: define i32 @f29()
-// AAPCS: define arm_aapcscc i32 @f29()
+// APCS-GNU-LABEL: define i32 @f29()
+// AAPCS-LABEL: define arm_aapcscc i32 @f29()
struct s29 { _Complex short f0; };
struct s29 f29() {}
@@ -176,8 +176,8 @@ void f32(struct s32 s) { }
// PR13350
struct s33 { char buf[32*32]; };
void f33(struct s33 s) { }
-// APCS-GNU: define void @f33(%struct.s33* byval %s)
-// AAPCS: define arm_aapcscc void @f33(%struct.s33* byval %s)
+// APCS-GNU-LABEL: define void @f33(%struct.s33* byval %s)
+// AAPCS-LABEL: define arm_aapcscc void @f33(%struct.s33* byval %s)
// PR14048
struct s34 { char c; };
@@ -209,14 +209,14 @@ float32x4_t f35(int i, s35_with_align s1, s35_with_align s2) {
*(float32x4_t *)&s2);
return v;
}
-// APCS-GNU: define <4 x float> @f35(i32 %i, %struct.s35* byval, %struct.s35* byval)
+// APCS-GNU-LABEL: define <4 x float> @f35(i32 %i, %struct.s35* byval, %struct.s35* byval)
// APCS-GNU: %[[a:.*]] = alloca %struct.s35, align 16
// APCS-GNU: %[[b:.*]] = bitcast %struct.s35* %[[a]] to i8*
// APCS-GNU: %[[c:.*]] = bitcast %struct.s35* %0 to i8*
// APCS-GNU: call void @llvm.memcpy.p0i8.p0i8.i32(i8* %[[b]], i8* %[[c]]
// APCS-GNU: %[[d:.*]] = bitcast %struct.s35* %[[a]] to <4 x float>*
// APCS-GNU: load <4 x float>* %[[d]], align 16
-// AAPCS: define arm_aapcscc <4 x float> @f35(i32 %i, %struct.s35* byval, %struct.s35* byval)
+// AAPCS-LABEL: define arm_aapcscc <4 x float> @f35(i32 %i, %struct.s35* byval, %struct.s35* byval)
// AAPCS: %[[a:.*]] = alloca %struct.s35, align 16
// AAPCS: %[[b:.*]] = bitcast %struct.s35* %[[a]] to i8*
// AAPCS: %[[c:.*]] = bitcast %struct.s35* %0 to i8*
View
8 test/CodeGen/arm-cc.c
@@ -5,13 +5,13 @@
// RUN: %clang_cc1 -triple arm-none-linux-gnueabi -target-abi aapcs -emit-llvm -w -o - %s | FileCheck -check-prefix=LINUX-AAPCS %s
-// DARWIN-APCS: define void @f()
+// DARWIN-APCS-LABEL: define void @f()
// DARWIN-APCS: call void @g
-// DARWIN-AAPCS: define arm_aapcscc void @f()
+// DARWIN-AAPCS-LABEL: define arm_aapcscc void @f()
// DARWIN-AAPCS: call arm_aapcscc void @g
-// LINUX-APCS: define arm_apcscc void @f()
+// LINUX-APCS-LABEL: define arm_apcscc void @f()
// LINUX-APCS: call arm_apcscc void @g
-// LINUX-AAPCS: define void @f()
+// LINUX-AAPCS-LABEL: define void @f()
// LINUX-AAPCS: call void @g
void g(void);
void f(void) {
View
2  test/CodeGen/arm-pcs.c
@@ -6,7 +6,7 @@ typedef int __attribute__((pcs("aapcs-vfp"))) (*aapcs_vfp_fn)(void);
aapcs_fn bar;
int foo(aapcs_vfp_fn baz) {
-// CHECK: define i32 @foo
+// CHECK-LABEL: define i32 @foo
// CHECK: call arm_aapcscc
// CHECK: call arm_aapcs_vfpcc
return bar() + baz();
View
8 test/CodeGen/arm-pnaclcall.c
@@ -9,10 +9,10 @@ typedef struct {
int a;
int b;
} s1;
-// CHECK: define i32 @f48(%struct.s1* byval %s)
+// CHECK-LABEL: define i32 @f48(%struct.s1* byval %s)
int __attribute__((pnaclcall)) f48(s1 s) { return s.a; }
-// CHECK: define void @f49(%struct.s1* noalias sret %agg.result)
+// CHECK-LABEL: define void @f49(%struct.s1* noalias sret %agg.result)
s1 __attribute__((pnaclcall)) f49() { s1 s; s.a = s.b = 1; return s; }
union simple_union {
@@ -20,7 +20,7 @@ union simple_union {
char b;
};
// Unions should be passed as byval structs
-// CHECK: define void @f50(%union.simple_union* byval %s)
+// CHECK-LABEL: define void @f50(%union.simple_union* byval %s)
void __attribute__((pnaclcall)) f50(union simple_union s) {}
typedef struct {
@@ -29,5 +29,5 @@ typedef struct {
int b8 : 8;
} bitfield1;
// Bitfields should be passed as byval structs
-// CHECK: define void @f51(%struct.bitfield1* byval %bf1)
+// CHECK-LABEL: define void @f51(%struct.bitfield1* byval %bf1)
void __attribute__((pnaclcall)) f51(bitfield1 bf1) {}
View
4 test/CodeGen/assign.c
@@ -2,7 +2,7 @@
// Check that we don't generate unnecessary reloads.
//
-// CHECK: define void @f0()
+// CHECK-LABEL: define void @f0()
// CHECK: [[x_0:%.*]] = alloca i32, align 4
// CHECK-NEXT: [[y_0:%.*]] = alloca i32, align 4
// CHECK-NEXT: store i32 1, i32* [[x_0]]
@@ -18,7 +18,7 @@ void f0() {
// This used to test that we generate reloads for volatile access,
// but that does not appear to be correct behavior for C.
//
-// CHECK: define void @f1()
+// CHECK-LABEL: define void @f1()
// CHECK: [[x_1:%.*]] = alloca i32, align 4
// CHECK-NEXT: [[y_1:%.*]] = alloca i32, align 4
// CHECK-NEXT: store volatile i32 1, i32* [[x_1]]
View
10 test/CodeGen/atomics-inlining.c
@@ -31,7 +31,7 @@ void test1(void) {
(void)__atomic_load(&a1, &a2, memory_order_seq_cst);
(void)__atomic_store(&a1, &a2, memory_order_seq_cst);
-// ARM: define arm_aapcscc void @test1
+// ARM-LABEL: define arm_aapcscc void @test1
// ARM: = call arm_aapcscc zeroext i8 @__atomic_load_1(i8* @c1
// ARM: call arm_aapcscc void @__atomic_store_1(i8* @c1, i8 zeroext
// ARM: = call arm_aapcscc zeroext i16 @__atomic_load_2(i8* bitcast (i16* @s1 to i8*)
@@ -43,7 +43,7 @@ void test1(void) {
// ARM: call arm_aapcscc void @__atomic_load(i32 100, i8* getelementptr inbounds ([100 x i8]* @a1, i32 0, i32 0), i8* getelementptr inbounds ([100 x i8]* @a2, i32 0, i32 0)
// ARM: call arm_aapcscc void @__atomic_store(i32 100, i8* getelementptr inbounds ([100 x i8]* @a1, i32 0, i32 0), i8* getelementptr inbounds ([100 x i8]* @a2, i32 0, i32 0)
-// PPC32: define void @test1
+// PPC32-LABEL: define void @test1
// PPC32: = load atomic i8* @c1 seq_cst
// PPC32: store atomic i8 {{.*}}, i8* @c1 seq_cst
// PPC32: = load atomic i16* @s1 seq_cst
@@ -55,7 +55,7 @@ void test1(void) {
// PPC32: call void @__atomic_load(i32 100, i8* getelementptr inbounds ([100 x i8]* @a1, i32 0, i32 0), i8* getelementptr inbounds ([100 x i8]* @a2, i32 0, i32 0)
// PPC32: call void @__atomic_store(i32 100, i8* getelementptr inbounds ([100 x i8]* @a1, i32 0, i32 0), i8* getelementptr inbounds ([100 x i8]* @a2, i32 0, i32 0)
-// PPC64: define void @test1
+// PPC64-LABEL: define void @test1
// PPC64: = load atomic i8* @c1 seq_cst
// PPC64: store atomic i8 {{.*}}, i8* @c1 seq_cst
// PPC64: = load atomic i16* @s1 seq_cst
@@ -67,7 +67,7 @@ void test1(void) {
// PPC64: call void @__atomic_load(i64 100, i8* getelementptr inbounds ([100 x i8]* @a1, i32 0, i32 0), i8* getelementptr inbounds ([100 x i8]* @a2, i32 0, i32 0)
// PPC64: call void @__atomic_store(i64 100, i8* getelementptr inbounds ([100 x i8]* @a1, i32 0, i32 0), i8* getelementptr inbounds ([100 x i8]* @a2, i32 0, i32 0)
-// MIPS32: define void @test1
+// MIPS32-LABEL: define void @test1
// MIPS32: = load atomic i8* @c1 seq_cst
// MIPS32: store atomic i8 {{.*}}, i8* @c1 seq_cst
// MIPS32: = load atomic i16* @s1 seq_cst
@@ -79,7 +79,7 @@ void test1(void) {
// MIPS32: call void @__atomic_load(i32 100, i8* getelementptr inbounds ([100 x i8]* @a1, i32 0, i32 0), i8* getelementptr inbounds ([100 x i8]* @a2, i32 0, i32 0)
// MIPS32: call void @__atomic_store(i32 100, i8* getelementptr inbounds ([100 x i8]* @a1, i32 0, i32 0), i8* getelementptr inbounds ([100 x i8]* @a2, i32 0, i32 0)
-// MIPS64: define void @test1
+// MIPS64-LABEL: define void @test1
// MIPS64: = load atomic i8* @c1 seq_cst
// MIPS64: store atomic i8 {{.*}}, i8* @c1 seq_cst
// MIPS64: = load atomic i16* @s1 seq_cst
View
12 test/CodeGen/attr-availability.c
@@ -2,15 +2,15 @@
// RUN: %clang_cc1 -fvisibility hidden "-triple" "x86_64-apple-darwin9.0.0" -emit-llvm -o - %s | FileCheck -check-prefix=CHECK-10_5 %s
// RUN: %clang_cc1 -fvisibility hidden "-triple" "x86_64-apple-darwin10.0.0" -emit-llvm -o - %s | FileCheck -check-prefix=CHECK-10_6 %s
-// CHECK-10_4: define hidden void @f2
-// CHECK-10_5: define hidden void @f2
-// CHECK-10_6: define hidden void @f2
+// CHECK-10_4-LABEL: define hidden void @f2
+// CHECK-10_5-LABEL: define hidden void @f2
+// CHECK-10_6-LABEL: define hidden void @f2
void f2();
void f2() { }
-// CHECK-10_4: define void @f3
-// CHECK-10_5: define void @f3
-// CHECK-10_6: define void @f3
+// CHECK-10_4-LABEL: define void @f3
+// CHECK-10_5-LABEL: define void @f3
+// CHECK-10_6-LABEL: define void @f3
void f3() __attribute__((availability(macosx,introduced=10.5)));
void f3() { }
View
4 test/CodeGen/attr-weakref.c
@@ -8,7 +8,7 @@ void test1_h(void) {
test1_g();
}
-// CHECK: define void @test2_f()
+// CHECK-LABEL: define void @test2_f()
void test2_f(void) {}
static void test2_g(void) __attribute__((weakref("test2_f")));
void test2_h(void) {
@@ -25,7 +25,7 @@ void test3_h(void) {
test3_g();
}
-// CHECK: define void @test4_f()
+// CHECK-LABEL: define void @test4_f()
void test4_f(void);
static void test4_g(void) __attribute__((weakref("test4_f")));
void test4_h(void) {
View
2  test/CodeGen/available-externally-suppress.c
@@ -5,7 +5,7 @@ int x;
inline void f0(int y) { x = y; }
-// CHECK: define void @test()
+// CHECK-LABEL: define void @test()
// CHECK: declare void @f0(i32)
void test() {
f0(17);
View
16 test/CodeGen/bitfield-2.c
@@ -32,7 +32,7 @@ int f0_reload(struct s0 *a0) {
return (a0->f0 += 1);
}
-// CHECK-OPT: define i64 @test_0()
+// CHECK-OPT-LABEL: define i64 @test_0()
// CHECK-OPT: ret i64 1
// CHECK-OPT: }
unsigned long long test_0() {
@@ -78,7 +78,7 @@ int f1_reload(struct s1 *a0) {
return (a0->f1 += 1234);
}
-// CHECK-OPT: define i64 @test_1()
+// CHECK-OPT-LABEL: define i64 @test_1()
// CHECK-OPT: ret i64 210
// CHECK-OPT: }
unsigned long long test_1() {
@@ -120,7 +120,7 @@ int f2_reload(union u2 *a0) {
return (a0->f0 += 1234);
}
-// CHECK-OPT: define i64 @test_2()
+// CHECK-OPT-LABEL: define i64 @test_2()
// CHECK-OPT: ret i64 2
// CHECK-OPT: }
unsigned long long test_2() {
@@ -156,7 +156,7 @@ int f3_reload(struct s3 *a0) {
return (a0->f0 += 1234);
}
-// CHECK-OPT: define i64 @test_3()
+// CHECK-OPT-LABEL: define i64 @test_3()
// CHECK-OPT: ret i64 -559039940
// CHECK-OPT: }
unsigned long long test_3() {
@@ -190,7 +190,7 @@ int f4_reload(struct s4 *a0) {
return (a0->f0 += 1234) ^ (a0->f1 += 5678);
}
-// CHECK-OPT: define i64 @test_4()
+// CHECK-OPT-LABEL: define i64 @test_4()
// CHECK-OPT: ret i64 4860
// CHECK-OPT: }
unsigned long long test_4() {
@@ -222,7 +222,7 @@ int f5_reload(struct s5 *a0) {
return (a0->f0 += 0xF) ^ (a0->f1 += 0xF) ^ (a0->f2 += 0xF);
}
-// CHECK-OPT: define i64 @test_5()
+// CHECK-OPT-LABEL: define i64 @test_5()
// CHECK-OPT: ret i64 2
// CHECK-OPT: }
unsigned long long test_5() {
@@ -252,7 +252,7 @@ int f6_reload(struct s6 *a0) {
return (a0->f0 += 0xF);
}
-// CHECK-OPT: define zeroext i1 @test_6()
+// CHECK-OPT-LABEL: define zeroext i1 @test_6()
// CHECK-OPT: ret i1 true
// CHECK-OPT: }
_Bool test_6() {
@@ -310,7 +310,7 @@ int f8_reload(struct s8 *a0) {
return (a0->f0 += 0xFD) ^ (a0->f2 += 0xFD) ^ (a0->f3 += 0xFD);
}
-// CHECK-OPT: define i32 @test_8()
+// CHECK-OPT-LABEL: define i32 @test_8()
// CHECK-OPT: ret i32 -3
// CHECK-OPT: }
unsigned test_8() {
View
4 test/CodeGen/block-byref-aggr.c
@@ -12,7 +12,7 @@ void test0() {
a = makeAgg();
}
-// CHECK: define void @test0()
+// CHECK-LABEL: define void @test0()
// CHECK: [[A:%.*]] = alloca [[BYREF:%.*]], align 8
// CHECK-NEXT: [[TEMP:%.*]] = alloca [[AGG]], align 4
// CHECK: [[RESULT:%.*]] = call i32 @makeAgg()
@@ -37,7 +37,7 @@ void test1() {
__block Agg a, b;
a = b = makeAgg();
}
-// CHECK: define void @test1()
+// CHECK-LABEL: define void @test1()
// CHECK: [[A:%.*]] = alloca [[A_BYREF:%.*]], align 8
// CHECK-NEXT: [[B:%.*]] = alloca [[B_BYREF:%.*]], align 8
// CHECK-NEXT: [[TEMP:%.*]] = alloca [[AGG]], align 4
View
4 test/CodeGen/blocks.c
@@ -45,7 +45,7 @@ void f3() {
// The bool can fill in between the header and the long long.
// Add the appropriate amount of padding between them.
void f4_helper(long long (^)(void));
-// CHECK: define void @f4()
+// CHECK-LABEL: define void @f4()
void f4(void) {
_Bool b = 0;
long long ll = 0;
@@ -60,7 +60,7 @@ struct F5 {
char buffer[32] __attribute((aligned));
};
void f5_helper(void (^)(struct F5 *));
-// CHECK: define void @f5()
+// CHECK-LABEL: define void @f5()
void f5(void) {
struct F5 value;
// CHECK: alloca <{ i8*, i32, i32, i8*, {{%.*}}*, [12 x i8], [[F5:%.*]] }>, align 16
View
2  test/CodeGen/bool_test.c
@@ -8,7 +8,7 @@ void f(_Bool *x, _Bool *y) {
*x = *y;
}
-// CHECK: define void @f(
+// CHECK-LABEL: define void @f(
// CHECK: [[FROMMEM:%.*]] = load i32* %
// CHECK: [[BOOLVAL:%.*]] = trunc i32 [[FROMMEM]] to i1
// CHECK: [[TOMEM:%.*]] = zext i1 [[BOOLVAL]] to i32
View
10 test/CodeGen/builtins-ppc-altivec.c
@@ -41,7 +41,7 @@ int res_i;
int res_ui;
int res_f;
-// CHECK: define void @test1
+// CHECK-LABEL: define void @test1
void test1() {
/* vec_abs */
@@ -333,7 +333,7 @@ void test1() {
}
-// CHECK: define void @test2
+// CHECK-LABEL: define void @test2
void test2() {
/* vec_avg */
res_vsc = vec_avg(vsc, vsc); // CHECK: @llvm.ppc.altivec.vavgsb
@@ -371,7 +371,7 @@ void test2() {
res_vbi = vec_vcmpgefp(vf, vf); // CHECK: @llvm.ppc.altivec.vcmpgefp
}
-// CHECK: define void @test5
+// CHECK-LABEL: define void @test5
void test5() {
/* vec_cmpgt */
@@ -394,7 +394,7 @@ void test5() {
res_vbi = vec_cmple(vf, vf); // CHECK: @llvm.ppc.altivec.vcmpgefp
}
-// CHECK: define void @test6
+// CHECK-LABEL: define void @test6
void test6() {
/* vec_cmplt */
res_vbc = vec_cmplt(vsc, vsc); // CHECK: @llvm.ppc.altivec.vcmpgtsb
@@ -3055,7 +3055,7 @@ void test6() {
}
/* ------------------------------ Relational Operators ------------------------------ */
-// CHECK: define void @test7
+// CHECK-LABEL: define void @test7
void test7() {
vector signed char vsc1 = (vector signed char)(-1);
vector signed char vsc2 = (vector signed char)(-2);
View
8 test/CodeGen/builtins.c
@@ -131,7 +131,7 @@ void foo() {
__builtin_strcat(0, 0);
}
-// CHECK: define void @bar(
+// CHECK-LABEL: define void @bar(
void bar() {
float f;
double d;
@@ -167,7 +167,7 @@ void bar() {
// CHECK: }
-// CHECK: define void @test_float_builtins
+// CHECK-LABEL: define void @test_float_builtins
void test_float_builtins(float F, double D, long double LD) {
volatile int res;
res = __builtin_isinf(F);
@@ -197,7 +197,7 @@ void test_float_builtins(float F, double D, long double LD) {
// CHECK: and i1
}
-// CHECK: define void @test_builtin_longjmp
+// CHECK-LABEL: define void @test_builtin_longjmp
void test_builtin_longjmp(void **buffer) {
// CHECK: [[BITCAST:%.*]] = bitcast
// CHECK-NEXT: call void @llvm.eh.sjlj.longjmp(i8* [[BITCAST]])
@@ -205,7 +205,7 @@ void test_builtin_longjmp(void **buffer) {
// CHECK-NEXT: unreachable
}
-// CHECK: define i64 @test_builtin_readcyclecounter
+// CHECK-LABEL: define i64 @test_builtin_readcyclecounter
long long test_builtin_readcyclecounter() {
// CHECK: call i64 @llvm.readcyclecounter()
return __builtin_readcyclecounter();
View
6 test/CodeGen/builtinshufflevector2.c
@@ -3,7 +3,7 @@
typedef float float4 __attribute__((ext_vector_type(4)));
typedef unsigned int uint4 __attribute__((ext_vector_type(4)));
-// CHECK: define void @clang_shufflevector_v_v(
+// CHECK-LABEL: define void @clang_shufflevector_v_v(
void clang_shufflevector_v_v( float4* A, float4 x, uint4 mask ) {
// CHECK: [[MASK:%.*]] = and <4 x i32> {{%.*}}, <i32 3, i32 3, i32 3, i32 3>
// CHECK: [[I:%.*]] = extractelement <4 x i32> [[MASK]], i32 0
@@ -27,14 +27,14 @@ void clang_shufflevector_v_v( float4* A, float4 x, uint4 mask ) {
*A = __builtin_shufflevector( x, mask );
}
-// CHECK: define void @clang_shufflevector_v_v_c(
+// CHECK-LABEL: define void @clang_shufflevector_v_v_c(
void clang_shufflevector_v_v_c( float4* A, float4 x, float4 y) {
// CHECK: [[V:%.*]] = shufflevector <4 x float> {{%.*}}, <4 x float> {{%.*}}, <4 x i32> <i32 0, i32 4, i32 1, i32 5>
// CHECK: store <4 x float> [[V]], <4 x float>* {{%.*}}
*A = __builtin_shufflevector( x, y, 0, 4, 1, 5 );
}
-// CHECK: define void @clang_shufflevector_v_v_undef(
+// CHECK-LABEL: define void @clang_shufflevector_v_v_undef(
void clang_shufflevector_v_v_undef( float4* A, float4 x, float4 y) {
// CHECK: [[V:%.*]] = shufflevector <4 x float> {{%.*}}, <4 x float> {{%.*}}, <4 x i32> <i32 0, i32 4, i32 undef, i32 5>
// CHECK: store <4 x float> [[V]], <4 x float>* {{%.*}}
View
6 test/CodeGen/byval-memcpy-elim.c
@@ -12,7 +12,7 @@ struct Test2S {
// Make sure we don't generate extra memcpy for lvalues
void test1a(struct Test1S, struct Test2S);
-// CHECK: define void @test1(
+// CHECK-LABEL: define void @test1(
// CHECK-NOT: memcpy
// CHECK: call void @test1a
void test1(struct Test1S *A, struct Test2S *B) {
@@ -28,7 +28,7 @@ struct Test3S {
int a,b,c,d,e,f,g,h,i,j,k,l;
};
void test2a(struct Test3S q);
-// CHECK: define void @test2(
+// CHECK-LABEL: define void @test2(
// CHECK: alloca %struct.Test3S, align 8
// CHECK: memcpy
// CHECK: call void @test2a
@@ -38,7 +38,7 @@ void test2(struct Test3S *q) {
// But make sure we don't generate a memcpy when we can guarantee alignment.
void fooey(void);
-// CHECK: define void @test3(
+// CHECK-LABEL: define void @test3(
// CHECK: alloca %struct.Test3S, align 8
// CHECK: call void @fooey
// CHECK-NOT: memcpy
View
10 test/CodeGen/c-strings.c
@@ -19,13 +19,13 @@ unsigned char align = 1;
void bar(const char *);
-// CHECK: define void @f0()
+// CHECK-LABEL: define void @f0()
void f0() {
bar("hello");
// CHECK: call void @bar({{.*}} @.str
}
-// CHECK: define void @f1()
+// CHECK-LABEL: define void @f1()
void f1() {
static char *x = "hello";
bar(x);
@@ -33,14 +33,14 @@ void f1() {
// CHECK: call void @bar(i8* [[T1:%.*]])
}
-// CHECK: define void @f2()
+// CHECK-LABEL: define void @f2()
void f2() {
static char x[] = "hello";
bar(x);
// CHECK: call void @bar({{.*}} @f2.x
}
-// CHECK: define void @f3()
+// CHECK-LABEL: define void @f3()
void f3() {
static char x[8] = "hello";
bar(x);
@@ -49,7 +49,7 @@ void f3() {
void gaz(void *);
-// CHECK: define void @f4()
+// CHECK-LABEL: define void @f4()
void f4() {
static struct s {
char *name;
View
2  test/CodeGen/c11atomics-ios.c
@@ -6,7 +6,7 @@
// This work was done in pursuit of <rdar://13338582>.
-// CHECK: define arm_aapcscc void @testFloat(float*
+// CHECK-LABEL: define arm_aapcscc void @testFloat(float*
void testFloat(_Atomic(float) *fp) {
// CHECK: [[FP:%.*]] = alloca float*
// CHECK-NEXT: [[X:%.*]] = alloca float
View
2  test/CodeGen/c11atomics.c
@@ -135,7 +135,7 @@ void testandeq(void)
s &= 42;
}
-// CHECK: define arm_aapcscc void @testFloat(float*
+// CHECK-LABEL: define arm_aapcscc void @testFloat(float*
void testFloat(_Atomic(float) *fp) {
// CHECK: [[FP:%.*]] = alloca float*
// CHECK-NEXT: [[X:%.*]] = alloca float
View
2  test/CodeGen/capture-complex-expr-in-block.c
@@ -12,7 +12,7 @@ int main ()
b();
}
-// CHECK: define internal void @__main_block_invoke
+// CHECK-LABEL: define internal void @__main_block_invoke
// CHECK: [[C1:%.*]] = alloca { double, double }, align 8
// CHECK: [[RP:%.*]] = getelementptr inbounds { double, double }* [[C1]], i32 0, i32 0
// CHECK-NEXT: [[R:%.*]] = load double* [[RP]]
View
2  test/CodeGen/complex-convert.c
@@ -21,7 +21,7 @@ void foo(signed char sc, unsigned char uc, signed long long sll,
_Complex unsigned char cuc1;
_Complex signed long long csll1;
_Complex unsigned long long cull1;
- // CHECK: define void @foo(
+ // CHECK-LABEL: define void @foo(
// CHECK: alloca i[[CHSIZE:[0-9]+]], align [[CHALIGN:[0-9]+]]
// CHECK-NEXT: alloca i[[CHSIZE]], align [[CHALIGN]]
// CHECK-NEXT: alloca i[[LLSIZE:[0-9]+]], align [[LLALIGN:[0-9]+]]
View
2  test/CodeGen/complex-indirect.c
@@ -7,6 +7,6 @@
void a(int,int,int,int,int,int,__complex__ char);
void b(__complex__ char *y) { a(0,0,0,0,0,0,*y); }
-// CHECK: define void @b
+// CHECK-LABEL: define void @b
// CHECK: alloca { i8, i8 }*, align 8
// CHECK: call void @a(i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i16 {{.*}})
View
4 test/CodeGen/complex-init-list.c
@@ -8,11 +8,11 @@ _Complex float x = { 1.0f, 1.0f/0.0f };
// CHECK: @x = global { float, float } { float 1.000000e+00, float 0x7FF0000000000000 }, align 4
_Complex float f(float x, float y) { _Complex float z = { x, y }; return z; }
-// CHECK: define <2 x float> @f
+// CHECK-LABEL: define <2 x float> @f
// CHECK: alloca { float, float }
// CHECK: alloca { float, float }
_Complex float f2(float x, float y) { return (_Complex float){ x, y }; }
-// CHECK: define <2 x float> @f2
+// CHECK-LABEL: define <2 x float> @f2
// CHECK: alloca { float, float }
// CHECK: alloca { float, float }
View
4 test/CodeGen/compound-literal.c
@@ -12,7 +12,7 @@ struct s {int a, b, c;} * b = &(struct s) {1, 2, 3};
_Complex double * x = &(_Complex double){1.0f};
}
-// CHECK: define void @f()
+// CHECK-LABEL: define void @f()
void f() {
typedef struct S { int x,y; } S;
// CHECK: [[S:%[a-zA-Z0-9.]+]] = alloca [[STRUCT:%[a-zA-Z0-9.]+]],
@@ -33,7 +33,7 @@ void f() {
// CHECK-NEXT: ret void
}
-// CHECK: define i48 @g(
+// CHECK-LABEL: define i48 @g(
struct G { short x, y, z; };
struct G g(int x, int y, int z) {
// CHECK: [[RESULT:%.*]] = alloca [[G:%.*]], align 2
View
2  test/CodeGen/cxx-default-arg.cpp
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -emit-llvm %s -o %t
-// Note: define CLANG_GENERATE_KNOWN_GOOD and compile to generate code
+// Note-LABEL: define CLANG_GENERATE_KNOWN_GOOD and compile to generate code
// that makes all of the defaulted arguments explicit. The resulting
// byte code should be identical to the compilation without
// CLANG_GENERATE_KNOWN_GOOD.
View
4 test/CodeGen/decl-in-prototype.c
@@ -2,13 +2,13 @@
const int AA = 5;
-// CHECK: define i32 @f1
+// CHECK-LABEL: define i32 @f1
int f1(enum {AA,BB} E) {
// CHECK: ret i32 1
return BB;
}
-// CHECK: define i32 @f2
+// CHECK-LABEL: define i32 @f2
int f2(enum {AA=7,BB} E) {
// CHECK: ret i32 7
return AA;
View
4 test/CodeGen/dllimport-dllexport.c
@@ -2,11 +2,11 @@
void __attribute__((dllimport)) foo1();
void __attribute__((dllexport)) foo1(){}
-// CHECK: define dllexport void @foo1
+// CHECK-LABEL: define dllexport void @foo1
void __attribute__((dllexport)) foo2();
// PR6269
__declspec(dllimport) void foo3();
__declspec(dllexport) void foo3(){}
-// CHECK: define dllexport void @foo3
+// CHECK-LABEL: define dllexport void @foo3
__declspec(dllexport) void foo4();
View
4 test/CodeGen/exceptions.c
@@ -5,8 +5,8 @@
void test1() {
extern void test1_helper(void (^)(int));
- // CHECK: define void @test1()
- // CHECK-ARM: define arm_aapcscc void @test1()
+ // CHECK-LABEL: define void @test1()
+ // CHECK-ARM-LABEL: define arm_aapcscc void @test1()
__block int x = 10;
View
12 test/CodeGen/exprs.c
@@ -121,7 +121,7 @@ void f10() {
}
// rdar://7530813
-// CHECK: define i32 @f11
+// CHECK-LABEL: define i32 @f11
int f11(long X) {
int A[100];
return A[X];
@@ -134,14 +134,14 @@ int f11(long X) {
int f12() {
// PR3150
- // CHECK: define i32 @f12
+ // CHECK-LABEL: define i32 @f12
// CHECK: ret i32 1
return 1||1;
}
// Make sure negate of fp uses -0.0 for proper -0 handling.
double f13(double X) {
- // CHECK: define double @f13
+ // CHECK-LABEL: define double @f13
// CHECK: fsub double -0.0
return -X;
}
@@ -151,7 +151,7 @@ void f14(struct s14 *a) {
(void) &*a;
}
-// CHECK: define void @f15
+// CHECK-LABEL: define void @f15
void f15() {
extern void f15_start(void);
f15_start();
@@ -168,7 +168,7 @@ void f15() {
}
// PR8967: this was crashing
-// CHECK: define void @f16()
+// CHECK-LABEL: define void @f16()
void f16() {
__extension__({ goto lbl; });
lbl:
@@ -176,7 +176,7 @@ void f16() {
}
// PR13704: negative increment in i128 is not preserved.
-// CHECK: define void @f17()
+// CHECK-LABEL: define void @f17()
void f17() {
extern void extfunc(__int128);
__int128 x = 2;
View
2  test/CodeGen/fast-math.c
@@ -2,7 +2,7 @@
float f0, f1, f2;
void foo(void) {
- // CHECK: define void @foo()
+ // CHECK-LABEL: define void @foo()
// CHECK: fadd fast
f0 = f1 + f2;
View
2  test/CodeGen/finite-math.c
@@ -2,7 +2,7 @@
float f0, f1, f2;
void foo(void) {
- // CHECK: define void @foo()
+ // CHECK-LABEL: define void @foo()
// CHECK: fadd nnan ninf
f0 = f1 + f2;
View
2  test/CodeGen/fp16-ops.c
@@ -7,7 +7,7 @@ volatile __fp16 h0 = 0.0, h1 = 1.0, h2;
volatile float f0, f1, f2;
void foo(void) {
- // CHECK: define void @foo()
+ // CHECK-LABEL: define void @foo()
// Check unary ops
View
6 test/CodeGen/func-return-member.c
@@ -10,17 +10,17 @@ int X;
struct frk F;
float _Complex C;
-// CHECK: define void @bar
+// CHECK-LABEL: define void @bar
void bar(void) {
X = foo().f.f.x;
}
-// CHECK: define void @bun
+// CHECK-LABEL: define void @bun
void bun(void) {
F = foo().f.f;
}
-// CHECK: define void @ban
+// CHECK-LABEL: define void @ban
void ban(void) {
C = foo().f.f.c;
}
View
12 test/CodeGen/function-attributes.c
@@ -24,7 +24,7 @@ void f6(signed short x) { }
void f7(unsigned short x) { }
-// CHECK: define void @f8()
+// CHECK-LABEL: define void @f8()
// CHECK: [[AI:#[0-9]+]]
// CHECK: {
void __attribute__((always_inline)) f8(void) { }
@@ -61,7 +61,7 @@ void f13(void){}