[LLVMbugs] [Bug 6140] New: llvm-as followed by llvm-dis turns "nsw" flag into "nuw"

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Jan 25 12:46:13 PST 2010


           Summary: llvm-as followed by llvm-dis turns "nsw" flag into "nuw"
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr
                CC: gohman at apple.com, llvmbugs at cs.uiuc.edu

Created an attachment (id=4112)
 --> (http://llvm.org/bugs/attachment.cgi?id=4112)
testcase .ll

As illustrated by the attached file sgesl.ll, applying llvm-as
followed by llvm-dis can turn nsw into nuw:

$ cat sgesl.ll | grep nuw
$ llvm-as sgesl.ll -o - | llvm-dis -o - | grep nuw
  %k_93 = sub nuw i32 %k_16, 1                    ; <i32> [#uses=1]
  %k_167 = sub nuw i32 %k_18, 1                   ; <i32> [#uses=1]

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list