https://llvm.org/bugs/show_bug.cgi?id=28771

            Bug ID: 28771
           Summary: InstSimplify crashes on trivial bitcast
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedb...@nondot.org
          Reporter: es...@apple.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

define <2 x i32> @test() {
  %tmp6 = bitcast <4 x half> <half undef, half undef, half undef, half 0xH3C00>
to <2 x i32>
  ret <2 x i32> %tmp6
}

Assertion failed: (C->getType()->isIntOrIntVectorTy() && "ZEXt operand must be
integral"), function getZExt, file ../lib/IR/Constants.cpp, line 1598.
Stack dump:
0.    Program arguments: bin/opt -instsimplify -S 
1.    Running pass 'Function Pass Manager' on module '<stdin>'.
2.    Running pass 'Remove redundant instructions' on function '@test'

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to