1 thread data $i = align 4 {w 42}
2 data $fmt = align 1 {b "i%d==%d\n", b 0}
9 call $pthread_create(l %pthr, l 0, l $thread, l 0)
11 call $pthread_join(l %t, l %rval)
12 %i0 =w loadw thread $i
13 call $printf(l $fmt, ..., w 0, w %i0)
15 call $printf(l $fmt, ..., w 1, w %i1)
19 function l $thread(l %arg) {
21 %i3 =l add thread $i, 3
23 %ret =l loadsw thread $i