llvm-project/llvm/test/CodeGen/PowerPC/aix-filename-absolute-path.ll
Jinsong Ji 28fb69e00a [AIX] Emit version string in .file directive
AIX .file directive support including compiler version string.
https://www.ibm.com/docs/en/aix/7.2?topic=ops-file-pseudo-op

This patch adds the support so that it will be easier to identify build
compiler in objects.

Reviewed By: #powerpc, shchenz

Differential Revision: https://reviews.llvm.org/D105743
2021-07-12 17:03:52 +00:00

10 lines
306 B
LLVM

; RUN: llc -verify-machineinstrs -mtriple powerpc-ibm-aix-xcoff < %s \
; RUN: | FileCheck %s
; RUN: llc -verify-machineinstrs -mtriple powerpc64-ibm-aix-xcoff < %s \
; RUN: | FileCheck %s
; CHECK: .file "/absolute/path/to/file"
; CHECK-SAME: ,{{.*version}}
source_filename = "/absolute/path/to/file"