cl: TestPython; build: PkgLinkExtern
This commit is contained in:
@@ -486,7 +486,7 @@ func isPhi(i ssa.Instruction) bool {
|
||||
|
||||
func (p *context) compilePhis(b llssa.Builder, block *ssa.BasicBlock) int {
|
||||
ret := p.fn.Block(block.Index)
|
||||
b.SetBlock(ret)
|
||||
b.SetBlockEx(ret, llssa.AtEnd)
|
||||
if ninstr := len(block.Instrs); ninstr > 0 {
|
||||
if isPhi(block.Instrs[0]) {
|
||||
n := 1
|
||||
|
||||
@@ -52,6 +52,10 @@ func TestFromTestpymath(t *testing.T) {
|
||||
cltest.Pkg(t, ssa.PkgPython+"/math", "../py/math/llgo_autogen.ll")
|
||||
}
|
||||
|
||||
func TestPython(t *testing.T) {
|
||||
cltest.Pkg(t, ssa.PkgPython, "../py/llgo_autogen.ll")
|
||||
}
|
||||
|
||||
func TestRuntime(t *testing.T) {
|
||||
cltest.Pkg(t, ssa.PkgRuntime, "../internal/runtime/llgo_autogen.ll")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user