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

            Bug ID: 49550
           Summary: non-trivial scalar-to-vector conversion when building
                    valid-looking LLVM IR for MIPS
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: MIPS
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

; RUN: llc -mtriple=mips64el-unknown-linux-gnu
define <3 x i1> @test_srem_vec(<3 x i32> %X) nounwind {
  %srem = srem <3 x i32> %X, <i32 9, i32 9, i32 -9>
  %cmp = icmp ne <3 x i32> %srem, <i32 3, i32 -3, i32 3>
  ret <3 x i1> %cmp
}

This appears to be caused by the vector length of 3, works fine with vectors of
4 items. Also appears to work on the regular MIPS.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to