<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Hello</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">I have the following code:</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128 :128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"</div><div id="bloop_customfont" style="margin: 0px;">target triple = "x86_64-apple-macosx10.9.0"</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">%MyType = type { i8* }</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">define i32 @main(i32 %argc, i8** %argv) nounwind uwtable {</div><div id="bloop_customfont" style="margin: 0px;"> %const.arr = alloca [8 x i8], align 8</div><div id="bloop_customfont" style="margin: 0px;"> store [8 x i8] c"\D0\CFT\15\01\00\00\00", [8 x i8]* %const.arr</div><div id="bloop_customfont" style="margin: 0px;"> %1 = bitcast [8 x i8]* %const.arr to %MyType*</div><div id="bloop_customfont" style="margin: 0px;"> ret i32 0</div><div id="bloop_customfont" style="margin: 0px;">}</div><div id="bloop_customfont" style="margin: 0px;">If I compile this with "llvm-as test.llvm" and then "lli test.llvm.bc", I get no error. On the other hand, If I hit "lli -force-interpreter test.llvm.bc" I get the following error:</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">LLVM ERROR: ERROR: Constant unimplemented for type: [8 x i8]</div><div id="bloop_customfont" style="margin: 0px;">Inspecting the code, I don't see anything wrong with it.</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">Why does the LLVM pure interpreter performs differently from the JIT-enabled interpreter with respect of array constants? (LLVM 3.8.1)</div><div id="bloop_customfont" style="margin: 0px;">Is this behaviour intended?</div></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Thank you very much,</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">LucTeo</div><div class="bloop_container"><div class="bloop_frame"> </div></div><br><div id="bloop_sign_1473111841795394048" class="bloop_sign"></div></body></html>