Closed aditya4d1 closed 7 years ago
Hi, I am trying to build ROCDL. I am facing this error:
[ 99%] Building C object test/opencl/CMakeFiles/test_math_code.dir/test_math.c.o fatal error: error in backend: Cannot select: 0xb34d808: i32 = bitcast 0xccc05c8 0xccc05c8: v2i32 = BUILD_VECTOR 0xb330160, 0xb3136a0 0xb330160: i32 = select 0xb332ba8, 0x697e268, Constant:i32<0> 0xb332ba8: i1 = setcc 0x697e268, Constant:i32<-1>, setne:ch 0x697e268: i32 = shl 0xb3519e8, Constant:i32<3> 0xb3519e8: i32 = add 0xb2dc198, 0xb324228 0xb2dc198: i32 = add 0xd113a90, 0x6982238 0xd113a90: i32 = mul 0xb2e5868, 0xb34b700 0xb2e5868: i32 = mul 0xcfff1c8, 0xd1135b0 0xcfff1c8: i32 = srl 0xb324e58, Constant:i32<16> 0xd1135b0: i32 = extract_vector_elt 0xd00e160, Constant:i32<1> 0xb34b700: i32 = AssertZext 0xcff4c30, ValueType:ch:i11 0xcff4c30: i32,ch = CopyFromReg 0x58e7850, Register:i32 %vreg6 0x6982238: i32 = mul 0xb3464a8, 0xd1135b0 0xb3464a8: i32 = AssertZext 0xb334340, ValueType:ch:i11 0xb334340: i32,ch = CopyFromReg 0x58e7850, Register:i32 %vreg7 0xd1135b0: i32 = extract_vector_elt 0xd00e160, Constant:i32<1> 0xd00e160: v2i32,ch = load<LD8[%7(addrspace=2)](align=4)(dereferenceable)(invariant)> 0xcfff7e0, 0xb3110d0, undef:i64 0x69823d8: i32 = Constant<1> 0xb324228: i32 = AssertZext 0xb346578, ValueType:ch:i11 0xb346578: i32,ch = CopyFromReg 0x58e7850, Register:i32 %vreg8 0xb34bd80: i32 = Register %vreg8 0xb334138: i32 = Constant<3> 0xb3503f0: i32 = Constant<-1> 0x697e268: i32 = shl 0xb3519e8, Constant:i32<3> 0xb3519e8: i32 = add 0xb2dc198, 0xb324228 0xb2dc198: i32 = add 0xd113a90, 0x6982238 0xd113a90: i32 = mul 0xb2e5868, 0xb34b700 0xb2e5868: i32 = mul 0xcfff1c8, 0xd1135b0 0xcfff1c8: i32 = srl 0xb324e58, Constant:i32<16> 0xb324e58: i32 = extract_vector_elt 0xd00e160, Constant:i32<0> 0xb324b80: i32 = Constant<16> 0xd1135b0: i32 = extract_vector_elt 0xd00e160, Constant:i32<1> 0xd00e160: v2i32,ch = load<LD8[%7(addrspace=2)](align=4)(dereferenceable)(invariant)> 0xcfff7e0, 0xb3110d0, undef:i64 0x69823d8: i32 = Constant<1> 0xb34b700: i32 = AssertZext 0xcff4c30, ValueType:ch:i11 0xcff4c30: i32,ch = CopyFromReg 0x58e7850, Register:i32 %vreg6 0xb2e5fb8: i32 = Register %vreg6 0x6982238: i32 = mul 0xb3464a8, 0xd1135b0 0xb3464a8: i32 = AssertZext 0xb334340, ValueType:ch:i11 0xb334340: i32,ch = CopyFromReg 0x58e7850, Register:i32 %vreg7 0xb3325f8: i32 = Register %vreg7 0xd1135b0: i32 = extract_vector_elt 0xd00e160, Constant:i32<1> 0xd00e160: v2i32,ch = load<LD8[%7(addrspace=2)](align=4)(dereferenceable)(invariant)> 0xcfff7e0, 0xb3110d0, undef:i64 0xb3110d0: i64 = add 0xd001590, Constant:i64<4> 0xb313020: i64 = undef 0x69823d8: i32 = Constant<1> 0xb324228: i32 = AssertZext 0xb346578, ValueType:ch:i11 0xb346578: i32,ch = CopyFromReg 0x58e7850, Register:i32 %vreg8 0xb34bd80: i32 = Register %vreg8 0xb334138: i32 = Constant<3> 0xb330368: i32 = Constant<0> 0xb3136a0: i32 = select 0xb332ba8, 0xa833ee8, Constant:i32<0> 0xb332ba8: i1 = setcc 0x697e268, Constant:i32<-1>, setne:ch 0x697e268: i32 = shl 0xb3519e8, Constant:i32<3> 0xb3519e8: i32 = add 0xb2dc198, 0xb324228 0xb2dc198: i32 = add 0xd113a90, 0x6982238 0xd113a90: i32 = mul 0xb2e5868, 0xb34b700 0xb2e5868: i32 = mul 0xcfff1c8, 0xd1135b0 0xcfff1c8: i32 = srl 0xb324e58, Constant:i32<16> 0xd1135b0: i32 = extract_vector_elt 0xd00e160, Constant:i32<1> 0xb34b700: i32 = AssertZext 0xcff4c30, ValueType:ch:i11 0xcff4c30: i32,ch = CopyFromReg 0x58e7850, Register:i32 %vreg6 0x6982238: i32 = mul 0xb3464a8, 0xd1135b0 0xb3464a8: i32 = AssertZext 0xb334340, ValueType:ch:i11 0xb334340: i32,ch = CopyFromReg 0x58e7850, Register:i32 %vreg7 0xd1135b0: i32 = extract_vector_elt 0xd00e160, Constant:i32<1> 0xd00e160: v2i32,ch = load<LD8[%7(addrspace=2)](align=4)(dereferenceable)(invariant)> 0xcfff7e0, 0xb3110d0, undef:i64 0x69823d8: i32 = Constant<1> 0xb324228: i32 = AssertZext 0xb346578, ValueType:ch:i11 0xb346578: i32,ch = CopyFromReg 0x58e7850, Register:i32 %vreg8 0xb34bd80: i32 = Register %vreg8 0xb334138: i32 = Constant<3> 0xb3503f0: i32 = Constant<-1> 0xa833ee8: i32,ch = load<LD4[undef(addrspace=2)+64](align=64)(dereferenceable)(invariant)> 0xb2dbec0:1, 0xb34b630, undef:i64 0xb34b630: i64 = add 0xb2dbec0, Constant:i64<64> 0xb2dbec0: i64,ch = CopyFromReg 0x58e7850, Register:i64 %vreg2 0xcff7950: i64 = Register %vreg2 0xb2e83e8: i64 = Constant<64> 0xb313020: i64 = undef 0xb330368: i32 = Constant<0> In function: test_fract_float2_float2_float2 clang-4.0: error: clang frontend command failed with exit code 70 (use -v to see invocation) clang version 4.0.0 (https://github.com/RadeonOpenCompute/clang 794f365321704b645955adfa7dac0851b18382fa) (https://github.com/RadeonOpenCompute/llvm.git 8c11c7bb6a75a44fec687341ba71beef9e5d6e20) Target: amdgcn--amdhsa Thread model: posix InstalledDir: /home/aditya/llvm.src/build/bin clang-4.0: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script. clang-4.0: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-4.0: note: diagnostic msg: /tmp/test_math-9e7cb0.cl clang-4.0: note: diagnostic msg: /tmp/test_math-9e7cb0.sh clang-4.0: note: diagnostic msg: ******************** make[2]: *** [test/opencl/CMakeFiles/test_math_code.dir/test_math.c.o] Error 70 make[1]: *** [test/opencl/CMakeFiles/test_math_code.dir/all] Error 2 make: *** [all] Error 2
I am facing this occasionally. Couldn't see a pattern.
Hi, I am trying to build ROCDL. I am facing this error: