sparse-llvm: OP_SWITCH
commit9e2fce867f280cca89a91e1409af9389717f4716
authorJeff Garzik <jeff@garzik.org>
Sat, 27 Aug 2011 06:18:17 +0000 (27 02:18 -0400)
committerPekka Enberg <penberg@kernel.org>
Sat, 27 Aug 2011 08:06:15 +0000 (27 11:06 +0300)
tree9dd56dbf3b8bac40a317fa6e890c5f7b07727ed0
parent5c6931812fc1ad2893f7c35005b3dbdaab25c73f
sparse-llvm: OP_SWITCH

testcase:

    int foo(int x)
    {
     switch (x) {
     case 1:
     return 11;
     case 2:
     return 22;
     default:
     return 33;
     }

     return 44;
    }

Signed-off-by: Pekka Enberg <penberg@kernel.org>
sparse-llvm.c