1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/Assembler/DIEnumeratorBig.ll
LemonBoy 5ef1cd8cb9 [DebugInfo] Change DIEnumerator payload type from int64_t to APInt
This allows the representation of arbitrarily large enumeration values.
See https://lists.llvm.org/pipermail/llvm-dev/2017-December/119475.html for context.

Reviewed By: andrewrk, aprantl, MaskRay

Differential Revision: https://reviews.llvm.org/D62475
2020-04-18 12:49:31 -07:00

14 lines
688 B
LLVM

;; Round-trip test for enumeration members using more than 64 bits.
; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
!named = !{!0, !1, !2}
; CHECK: !DIEnumerator(name: "D0", value: -170141183460469231731687303715884105728)
; CHECK: !DIEnumerator(name: "D1", value: 170141183460469231731687303715884105727)
!0 = !DIEnumerator(name: "D0", value: -170141183460469231731687303715884105728)
!1 = !DIEnumerator(name: "D1", value: 170141183460469231731687303715884105727)
; CHECK: !DIEnumerator(name: "D1", value: 2722258935367507707706996859454145691648, isUnsigned: true)
!2 = !DIEnumerator(name: "D1", value: 2722258935367507707706996859454145691648, isUnsigned: true)