http://llvm.org/bugs/show_bug.cgi?id=17553
Bug ID: 17553
Summary: PTX backend should discard .ident, as it is not
supported by PTX ISA
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: PTX
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
$ cat ident.ll
; ModuleID = '__kernelgen_main_module'
target datalayout =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-n16:32:64"
target triple = "nvptx64-nvidia-cuda"
module asm "\09.ident\09\22GCC: (GNU) 4.8.2 20130912 (prerelease) LLVM:
3.4svn\22"
$ llc ident.ll -o ident.ptx
$ cat ident.ptx
//
// Generated by LLVM NVPTX Back-End
//
.version 3.1
.target sm_20
.address_size 64
// Start of file scope inline assembly
.ident "GCC: (GNU) 4.8.2 20130912 (prerelease) LLVM: 3.4svn"
// End of file scope inline assembly
$ ptxas ident.ll
ptxas ident.ll, line 1; error : Missing .version directive at start of file
'ident.ll'
ptxas ident.ll, line 1; error : Missing .target directive at start of file
'ident.ll'
ptxas ident.ll, line 1; fatal : Parsing error near ';': syntax error
ptxas fatal : Ptx assembly aborted due to errors
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs