http://llvm.org/bugs/show_bug.cgi?id=20262

            Bug ID: 20262
           Summary: TargetOptions.DataSections not followed for literals
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Target Description Classes
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
@test1 = global i32 22
@test2 = global i32 33
define i32 @_D5test23fooFZi() nounwind readnone {
  ret i32 1
}
define float @_D5test23barFZf() nounwind readnone {
  ret float 5.000000e+00
}
define float @_D5test23bazFZf() nounwind readnone {
  ret float 6.000000e+00
}
define i32 @main(i32 %argc_arg, i8** %argv_arg) nounwind readnone {
  ret i32 0
}
define i32 @mainCRTStartup() nounwind readnone {
  ret i32 0
}

$ llc -function-sections -data-sections -filetype=obj test.ll
$ dumpbin /headers test.obj
$ link /OPT:REF /OPT:ICF /VERBOSE /MAP test.obj

-- 
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

Reply via email to